PhotoPlog

Go Back   PhotoPlog > PhotoPlog Lite > "How Do I..." Questions
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 18 Years ago
 
Thread Tools
  #1  
Old 01-23-2006, 04:04 PM
TOZ TOZ is offline
Green Plog
 
Join Date: Jan 2006
Posts: 4
Gallery: 0
Comments: 0
Exclamation Next Image feature Please

Is there a way that we could have a next image button or text or arrow to keep looking for the next image posted instead of returning to the main category to view the next picture.
At least until the PRO version comes out. That would help a lot.
Reply With Quote
  #2  
Old 01-24-2006, 12:01 AM
allstar's Avatar
allstar allstar is offline
Yellow Plog
 
Join Date: Dec 2005
Location: Germany/NRW
Posts: 41
Gallery: 6
Comments: 1
Default

Yea, next and before link

<< - >>
Reply With Quote
  #3  
Old 01-24-2006, 01:07 AM
Nitro Nitro is offline
Yellow Plog
 
Join Date: Dec 2005
Posts: 63
Gallery: 0
Comments: 0
Default

You should be able to do it quite easily

in index.php add a couple of lines like:
Code:
Content visible to registered users only.
You would just need to find the appropriate place to add the above lines.

and then pop the session url hrefs with the n=(next and prev) variables into the photoplog_veiw_file template where you like ie
Code:
Content visible to registered users only.
Seems to work to which surprised me as I just pulled it out the hat.
Reply With Quote
  #4  
Old 01-24-2006, 01:38 PM
TOZ TOZ is offline
Green Plog
 
Join Date: Jan 2006
Posts: 4
Gallery: 0
Comments: 0
Default

Can u explain this a little bit further please

Where in Index.php should we put this ?
$photoplog_prev = $photoplog_file_id - 1;
$photoplog_next = $photoplog_file_id + 1;

Last edited by TOZ; 01-24-2006 at 01:41 PM..
Reply With Quote
  #5  
Old 01-24-2006, 02:47 PM
Nitro Nitro is offline
Yellow Plog
 
Join Date: Dec 2005
Posts: 63
Gallery: 0
Comments: 0
Default

around line 101 staright after
Code:
Content visible to registered users only.
Your line # maybe slightly different I am still on 1.0.6.1

Its not really a complete mod but should do till pro comes out. I dont have the time really atm to try to find the relevant query needed if its there and where to place it and contain the if/elses to make it as it should be. What I mean here is when you get to the end it wont go back to the beggining and if you go previous on n=1 url you will drop out to the category view.
Reply With Quote
  #6  
Old 01-24-2006, 04:43 PM
TOZ TOZ is offline
Green Plog
 
Join Date: Jan 2006
Posts: 4
Gallery: 0
Comments: 0
Default

Code:
Content visible to registered users only.
Does the sessionurl here needs to be rename ? I`m just using the NEXT link here.
Here is what I did so far, i`m also running v1.0.6.1.
This is where I put my codes for the Index.php
Code:
Content visible to registered users only.
And here is an example of the my site:
http://www.sffba.net/forum/photoplog/index.php?n=213

What am i doing wrong ??
Reply With Quote
  #7  
Old 01-24-2006, 07:01 PM
Nitro Nitro is offline
Yellow Plog
 
Join Date: Dec 2005
Posts: 63
Gallery: 0
Comments: 0
Default

Forgot a step sorry

You need to add the 2 variables to the page output function globals in functions.php (I added them in the same line as $photoplog_fileid

so that line looks something like:

global $photoplog_fileid, $photoplog_prev, $photoplog_next, $bla, $bla....;

As I said dont expebt wonders from it it is not going to jump to the next image in the category or the next users images its just a simple +1 or -1 on the =n

The fancy stuff is a lot more work.

I cant view your site unregged.

You can see this working tho non regged can view atm
I just added it their till the pro comes round.
http://www.madforit.org.uk/portal/ph...index.php?n=13
Reply With Quote
  #8  
Old 01-29-2006, 07:15 PM
allstar's Avatar
allstar allstar is offline
Yellow Plog
 
Join Date: Dec 2005
Location: Germany/NRW
Posts: 41
Gallery: 6
Comments: 1
Default

Please reply with the complete text.
I don't understand the pieces here.

I installed the code, but when the id for "back or return" is not available,
i receive an error mod message.

that sucks

Last edited by allstar; 01-29-2006 at 07:18 PM..
Reply With Quote
  #9  
Old 01-30-2006, 04:58 PM
Nitro Nitro is offline
Yellow Plog
 
Join Date: Dec 2005
Posts: 63
Gallery: 0
Comments: 0
Default

Yep your right it isnt the best, prev link when on a n=1 should drop you to category veiw but when n=lastpicid and next is selected you will get a "no picture or needs moderating error message".

I did give a quick if / else a go but I cant seem to find the right syntax or the query I found isn't relevant to it, like I was hoping at the time. I have not had time to play more with that either. Mys suse box is not behaving 100% after updating to 10.0 OSS and I really want to get that sorted, amongst other things. I will hope to have a way to go round the clock both ways sometime tho even if pro comes first.
Reply With Quote
Reply

« Previous Thread | Next Thread »

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nice feature ragtek Feedback & Suggestions 0 12-17-2007 11:03 PM
Feature Addons MikeD Feedback & Suggestions 5 09-28-2006 12:36 PM
New feature requests Swami Gaurangapada Feedback & Suggestions 3 07-04-2006 03:57 PM
Feature - Request UncoderMom Feedback & Suggestions 2 06-22-2006 03:36 PM
feature? butty Pre-Sale Questions 1 01-29-2006 06:03 PM


All times are GMT. The time now is 03:57 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.