 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
July 9th, 2006, 03:31 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
| Need forum link in navbar on gallery index...
I currently have this script in my navbar template in vB which changes according to whether I'm on the Home page of vBAdvanced or the Forums Main Index page... Code: Content visible to verified customers only.
I have added an additional link on my navbar template that shows up on the navbar everywhere... Code: Content visible to verified customers only.
But I don't want this link to show while I'm in the Member Photo Gallery... I want a "Forums" link to show.... similar to how it does if I'm on the Home page.
Your help is appreciated. Thanks!
|
| |
July 9th, 2006, 09:13 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
we define our script as ppindex so you can add a new conditional there
|
| |
July 9th, 2006, 02:21 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Thanks! Works just like I want it to.
|
| |
July 9th, 2006, 04:52 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Well... almost.
It works as long as I'm on the main index page of the gallery. When I click on a category or to view a members photo the navbar reverts back to showing "Members Photo Gallery" instead of the "Forums" link.
What would be the additional scripts used?
Thanks!
|
| |
July 10th, 2006, 08:02 AM
|
#5 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You can view each script in Photopost to get the THIS_SCRIPT name |
| |
July 10th, 2006, 10:05 AM
|
#6 (permalink)
| | Senior Member Verified Customer
Join Date: Mar 2006 Location: Yorkshire
Posts: 618
|
thats going to be a huge <if statement |
| |
July 10th, 2006, 10:30 AM
|
#7 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
exactly |
| |
July 14th, 2006, 06:33 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
I think I got most of the pertinent ones included... Code: Content visible to verified customers only.
I don't understand the script that well but it seems like to me there should be some way of just adding each script in the first "if condition"...
<if condition="THIS_SCRIPT == 'ppindex' or 'showmembers' or showphoto">
I tried "and"... I tried with the "==" before each one... I tried 'ppindex', 'showmember', 'showphoto'... which is how I do it for forumid to place banners in several forums... but it didn't like it. I probably just missing something to make it work... either way, it works like I have it above, just a lot more copying and pasting and extra code.
|
| |
July 14th, 2006, 07:30 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
well a normal if clause would be this to give you a hint Code: Content visible to verified customers only.
|
| |
July 15th, 2006, 12:56 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
I should have figured as much.
Here's another one that seems to be a challenge for me to figure out.
These thumbnails are set at a maximum width of 100 pixels, although some are smaller. When one that is narrower than 100 pixels loads, the frame it is in also gets smaller, thereby causing the four frames to be unequal. I have this table setup to be 740 pixels wide and I would like to make each frame fixed at 185 pixels each, regardless of what the thumbnail size is. Where and how could I edit this?
Thanks!
|
| |
July 15th, 2006, 08:52 AM
|
#11 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
what like in the feature template? Try setting the td before the image is displayed to width of 185 |
| |
July 15th, 2006, 08:42 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Do you mean in Photopost Admin.... feature.tmpl?
I tried editing those widths in there... the only ones I could see were "$twidth%".
I get the following error: Quote:
Warning: fopen(/home/homethea/public_html/photopost/templates/vb3enhanced//feature.tmpl): failed to open stream: Permission denied in /home/homethea/public_html/photopost/adm-misc.php on line 2292
Unable to write changes, permissions on feature.tmpl are not set properly.
| |
| |
July 15th, 2006, 08:51 PM
|
#13 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Right cause the width is automatically set at 25% 33% etc etc depending on how many columns you show. That is unless you have some long title stretching things out Code: Content visible to verified customers only.
|
| |
July 15th, 2006, 09:01 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
You flew right over my head there I think...
Do I need to change the "$tdwidth%" to "$tdwidth = round(100/$rcols);" ???
What I need to know is where exactly do I change the td width to 185?
I use random... here's the td code in feature.tmpl for random: Code: Content visible to verified customers only.
Then I have these two below that: Code: Content visible to verified customers only.
Code: Content visible to verified customers only.
|
| |
July 16th, 2006, 10:17 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
You should not need to do anything from what I see
As stated the rows should be evenly calculated. Only way they would be different is if you had something like a title with no spaces that could not span
|
| |
July 16th, 2006, 05:01 PM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Something ain't right because I don't have titles on the featured images on the forumhome page.
You can check it out: http://www.hometheatershack.com/forums
If it's even when you see it, refresh until one of the narrow images shows.
|
| |
July 18th, 2006, 11:42 AM
|
#17 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Any hope here?
|
| |
July 20th, 2006, 12:24 AM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Hello?
|
| |
July 20th, 2006, 10:00 AM
|
#19 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 66,806
|
Your looking at the wrong thing here
First off I show your running nothing on your forum but if your talking about photo blocks on the forum and not photopost then edit your inc_features.php file |
| |
July 20th, 2006, 11:42 AM
|
#20 (permalink)
| | Member Verified Customer
Join Date: Jul 2006
Posts: 81
|
Huh? You don't see the 4 blocks of photo's on the main forum page? http://www.hometheatershack.com/forums
Directly beneath the navbar... they are definitely there.
I added the following to inc_features.php and it works properly now. Thanks! Code: Content visible to verified customers only.
|
| | |
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 03:21 PM. | |