 | |  | |
May 2nd, 2005, 02:18 PM
|
#1 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2004
Posts: 29
| Just purchased and 1 question
I want to put on the navbar a link to gallery in this way:
this image Code: Content visible to verified customers only.
when there are no new images and this Code: Content visible to verified customers only.
when there are new images
So my users know when to go to the gallery to watch images
Is this possible?
|
| |
May 2nd, 2005, 02:34 PM
|
#2 (permalink)
| | Registered User Verified Customer
Join Date: Nov 2005
Posts: 1,408
| Re: Just purchased and 1 question
Black Widow,
You would have to add some PHP code in order to do a query to decide if there are new images or not. It's a 'doable' thing but not without getting involved with changing code.
|
| |
May 2nd, 2005, 02:51 PM
|
#3 (permalink)
| | Senior Member Verified Customer
Join Date: May 2004
Posts: 531
| Re: Just purchased and 1 question
Love this idea... will keep a watching brief on this thread as I'd like to see how this is done.
EDIT:
Just looked in ga..ery/browseimages.php and found this: Code: Content visible to verified customers only.
... does this mean one can use a conditional to check for
if 'newimages'=true
show flashing Gallery link
else show normal Gallery link
???
|
| |
May 2nd, 2005, 04:08 PM
|
#4 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2004
Posts: 29
| Re: Just purchased and 1 question
Thanks
And where have i to use conditional? Are thos variables definie in all files of vb3?
Mhm i'm not so good with code |
| |
May 2nd, 2005, 05:33 PM
|
#5 (permalink)
| | Senior Member Verified Customer
Join Date: May 2004
Posts: 531
| Re: Just purchased and 1 question Quote: |
Originally Posted by Black_Widow Thanks
And where have i to use conditional? Are thos variables definie in all files of vb3?
Mhm i'm not so good with code  | Hi BW...
Not so sure on this one hence my question too...!!!
I shall wait for Brian to have a read of the thread and hopefully he will pop a reply to it ( and hopefully to my latest PM also ) |
| |
May 2nd, 2005, 06:25 PM
|
#6 (permalink)
| | Guest | Re: Just purchased and 1 question
If you'll open your forum/global.php file and add this bit of code near the very bottom (just before the closing ?> tag): Code: Content visible to verified customers only.
Then you could use an if condition in your template that would look something like this: Code: Content visible to verified customers only.
| |
| |
May 2nd, 2005, 06:28 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2004
Posts: 29
| Re: Just purchased and 1 question
Thanks Brian, I'll try
|
| |
May 2nd, 2005, 06:34 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 143
| Re: Just purchased and 1 question
Brian I have a question , In my navbar i have a dropdown menu for gallery and I liked the idea. Is it possible for me to integrate this with my dropdown menu ?
Like : Code: Content visible to verified customers only.
Will this work ?
|
| |
May 2nd, 2005, 06:38 PM
|
#9 (permalink)
| | Guest | Re: Just purchased and 1 question
Don't see why it wouldn't. | |
| |
May 3rd, 2005, 08:12 AM
|
#10 (permalink)
| | Senior Member Verified Customer
Join Date: May 2004
Posts: 531
| Re: Just purchased and 1 question Quote: |
Originally Posted by Brian If you'll open your forum/global.php file and add this bit of code near the very bottom (just before the closing ?> tag): Code: Content visible to verified customers only.
Then you could use an if condition in your template that would look something like this: Code: Content visible to verified customers only.
| Hey Brian
No joy with this one sorry. I made the changes to Global.php and added the conditional into my header template to test it out. The message then showed correctly i.e. no new images, but when I uploaded an image, it remained the same...
Any ideas...?
PS: Did you see my latest PM to ya... |
| |
May 3rd, 2005, 08:34 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 143
| Re: Just purchased and 1 question Quote: |
Originally Posted by theMusicMan Hey Brian
No joy with this one sorry. I made the changes to Global.php and added the conditional into my header template to test it out. The message then showed correctly i.e. no new images, but when I uploaded an image, it remained the same...
Any ideas...?
PS: Did you see my latest PM to ya...  | Same with me.
|
| |
May 3rd, 2005, 11:18 AM
|
#12 (permalink)
| | Guest | Re: Just purchased and 1 question
Sorry, looks like I had a small error in the code. I just updated the post with the correct code though. | |
| |
May 3rd, 2005, 01:42 PM
|
#13 (permalink)
| | Senior Member Verified Customer
Join Date: May 2004
Posts: 531
| Re: Just purchased and 1 question  still no joy though Brian... same as before.
|
| |
May 3rd, 2005, 06:37 PM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: Nov 2004
Posts: 29
| Re: Just purchased and 1 question
Mhm yes it seems not to work well.
I jave added Brian code in global.php and I'm using this conditional Code: Content visible to verified customers only.
You can give a look here www.p2pforum.it
When a not logged in users go to my forum it shows No-New Image , but when it enter Gallery forum always shows NEW image.
mhm what's up?
|
| |
May 3rd, 2005, 10:47 PM
|
#15 (permalink)
| | Guest | Re: Just purchased and 1 question
Seems to be working fine on my localhost... When I go to p2pforum.it it's also showing that there are new images from the homepage and gallery...
| |
| |
May 3rd, 2005, 11:13 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Nov 2005
Posts: 143
| Re: Just purchased and 1 question Quote: |
Originally Posted by Brian Seems to be working fine on my localhost... When I go to p2pforum.it it's also showing that there are new images from the homepage and gallery... | Mine is not working also. Maybe this is only working with an image.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 10:13 AM. | |