[BETA] TS gallery mod -- get images from TS gallery

Re: TS gallery mod -- get images from TS gallery

Postby Admin on Thu Apr 17, 2008 7:45 pm

juhohei wrote:So I still couldn't get this working..
I'm trying to get recent images to my separate portal index.

What should I do :

Step 1:
I copy that code to my separate .php page anywhere I wan't and just add <?php to the begin and ?> to the end?

Step 2:
w00t?

Step 3:
w00t?

hi,
talking in the chat with you i get you maked a your index page so you have to build it in a different way.
however I'm working for you ;)
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

google adsense
Google
 

Re: TS gallery mod -- get images from TS gallery

Postby Admin on Wed Apr 23, 2008 11:54 pm

Done.
This is the update from the prev version :
We suppose you had installed the version at first post, so

Step 1 : Into the code at step 1
Code: Select all
-----FIND-----
$sql = 'SELECT a.* , b.*

---- ADD BEFORE ----
/////////CONFIGURATION PART
$title_on = true; // true make title information able to be view
$nview_on = true; // true make nview information able to be view
$rate_on = true; // true make rate information able to be view
$by_on = true;  // true make by information able to be view
$comment_on = true; // true make comment link able to be view

-----FIND-----
'RATE_FLAG'   => true ,

---- REPLACE WITH ----
                        'BY_ON'      => $by_on, // Flag
                        'TITLE_ON'   => $title_on, // Flag
         'NVIEW_ON'   => $nview_on, // Flag
         'RATE_FLAG'   => $rate_on ,
         'TITLE'      => $row['pic_title'],
         'N_VIEW'   => $row['pic_views'],
                        'COMMENT_ON'   => $comment_on,
         'COMMENT_LINK'  => "gallery/viewpic.php?pic_id=" . $row['pic_id'],

Step 2 : Into the code at step 3
Code: Select all
-----FIND-----
<div>by {imm_galleria.BY} </div>

-----REPLACE WITH -------
<!-- IF imm_galleria.BY_ON --><div>by {imm_galleria.BY} </div> <!-- ENDIF -->
<!-- IF imm_galleria.TITLE_ON --><div>Title : {imm_galleria.TITLE} </div><!-- ENDIF -->
<!-- IF imm_galleria.NVIEW_ON --><div>View : {imm_galleria.N_VIEW} times</div><!-- ENDIF -->
<!-- IF imm_galleria.COMMENT_ON --><div> <a href="{imm_galleria.COMMENT_LINK}"> Comments </a></div><!-- ENDIF -->

With this mod you can choose what to see and what don't... just see the configuration part
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

Re: TS gallery mod -- get images from TS gallery

Postby Zuritz on Thu Apr 24, 2008 10:11 am

Thanks, it works great!!! :D

Is it possible to have this feature in future?

by: Zuritz (with link to postauthor profile)
Comments: 3 (how many comments)

You are good. I like it very :D

Kind Regards
Zuritz
Level 1
Level 1
 
Posts: 17
Joined: Tue Apr 08, 2008 1:45 pm

Re: TS gallery mod -- get images from TS gallery

Postby Admin on Thu Apr 24, 2008 10:52 am

Zuritz wrote:by: Zuritz (with link to postauthor profile)
Comments: 3 (how many comments)


Done ;)

At step one :
Code: Select all
----FIND----
'BY'      => $row['pic_username'],

----REPLACE WITH-----
'BY'      => "<a href=memberlist.php?mode=viewprofile&u=" . $row['pic_user_id'] . ">" . $row['pic_username'] . "</a> ",


About comments number... doing it now :D :D
If you have other requests just ask ;)

Thanks for positive feedback :)
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

Re: TS gallery mod -- get images from TS gallery

Postby Zuritz on Thu Apr 24, 2008 11:30 am

So fast!!!

I am impressed. Nice work. Works perfect :D :D

Maybe I have other requests later, but this is perfect soon already, with comment number :D

I also look forward to see if I can use recent board images in this block too. Is that the plans? I have readed here: http://www.phpbb.com/community/viewtopi ... 5#p5157445

Thanks again for your good work :D
Zuritz
Level 1
Level 1
 
Posts: 17
Joined: Tue Apr 08, 2008 1:45 pm

Re: TS gallery mod -- get images from TS gallery

Postby Admin on Thu Apr 24, 2008 11:41 am

Yes it is plans :) but i put it there and i forgot to put it here in the first post :D ... i'm going to do it now :D
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

google adsense
Google
 

Re: TS gallery mod -- get images from TS gallery

Postby armstrong on Thu Apr 24, 2008 7:10 pm

Hi..
I've been long time requesting this mod :D
finally it's available...

but my issue is that I'm not a developer...
so sadly I don't understand the steps at all..
so could you exlain it to me a bit easier..
what I want exacly is to get new photos from TS gallery into my home page (phpbb3 portal)
so if you tell me certain steps, like:
find: xxxxx
add after: yyyy


thanks in advance
armstrong
New
New
 
Posts: 5
Joined: Thu Apr 24, 2008 6:36 pm

Re: [BETA] TS gallery mod -- get images from TS gallery

Postby Admin on Fri Apr 25, 2008 2:16 am

armstrong wrote:so if you tell me certain steps, like:
find: xxxxx
add after: yyyy


Hi,
of course!
I'll do a guide very simple for you ;)
i'll do it as soon as possible
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

Re: TS gallery mod -- get images from TS gallery

Postby Zuritz on Mon Apr 28, 2008 9:01 am

Admin wrote:About comments number... doing it now :D :D

Have you doing this? If you have, I am ready for testing :D :D

Regards
Zuritz
Level 1
Level 1
 
Posts: 17
Joined: Tue Apr 08, 2008 1:45 pm

Re: [BETA] TS gallery mod -- get images from TS gallery

Postby Admin on Mon Apr 28, 2008 11:37 am

yes i did it and i forget to put it here ...
I have tested it on local server and it works.
Tell me how it works to you ;)

these are the steps :

Step 1 : Into the code at step 1
Code: Select all
----FIND----
$flag = false;

---ADD BEFORE---
$sql_com = 'SELECT * FROM ' . GALLERY_COMMENT_TABLE . "
                    WHERE comment_pic_id = '" . $row['pic_id'] ."'";
         $result_com = $db->sql_query($sql_com);
         $rows_com = $db->sql_fetchrowset($result_com);
         $db->sql_freeresult($result_com);
         $num_com = count($rows_com);

----FIND----
'COMMENT_LINK'  => "gallery/viewpic.php?pic_id=" . $row['pic_id'],

---- ADD AFTER ----
'COMMENT_COUNT' => $num_com,


Step 2 : Into the code at step 3
Code: Select all
---- FIND ----
<!-- IF imm_galleria.COMMENT_ON --><div> <a href="{imm_galleria.COMMENT_LINK}"> Comments </a></div><!-- ENDIF -->

--- REPLACE WITH ----
<!-- IF imm_galleria.COMMENT_ON --><div> <a href="{imm_galleria.COMMENT_LINK}"> Comments ( {imm_galleria.COMMENT_COUNT} )</a></div><!-- ENDIF -->


For armstrong : sorry if i'm late but i'm a little bit busy, i'll do the easy guide very soon... ;)
we don't see things like they are but we see them like we are
User avatar
Admin
Site Admin
Site Admin
 
Posts: 113
Joined: Wed Mar 05, 2008 6:31 am
Location: Internet
Highscores: 6

PreviousNext

Return to MOD Reviews

Who is online

Users browsing this forum: No registered users and 0 guests

cron