Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2002
Posts: 37
User
User
Offline
Joined: Nov 2002
Posts: 37
I've seen quite a few forums (mostly all VB's) that show random photo's from the photopost database on the forum summary page (usually near the top). While searching around here, I've found the Sidebar pal and IIP mods that allow you to generate random photopost PAL boxes. However, I would like my site to display three to four photo's horizontally between my forum banner and the top of the forum listing, identical to http://www.photopostdev.com/index.php?

I'm using UBB.threads 6.4 and Photopost 4.6.6 at http://www.coreplanets.com Any hints or help would be appreciated.

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
SWFan the Photopostpal you see down the sidebar's etc can be modified very simply by moving the tr opening and closing tag out of the image look and put them right under the tbopen and over the tbclose Thus you get one row with 4 td's instead of 4 rows like you see.

Joined: Nov 2002
Posts: 37
User
User
Offline
Joined: Nov 2002
Posts: 37
Okay, but I think I'm still confused. To use this custompal box don't I have to be running either IIP or Sidebarpal? I really don't want to, at least not now. I just thought there was some code I could insert into one of the existing UBBT templates that would pull the photo's right underneath the banner. Or am I missing something about using this modification?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No you do not need to run either.

Rename it to whatever you want just make sure to follow the instructions as far as placing the photopost-inc.php file where the file can find it and filling it out. You then include the file where you want it at.

Sponsored Links
Joined: Nov 2002
Posts: 37
User
User
Offline
Joined: Nov 2002
Posts: 37
I don't know PHP so I need a little help with this. Let's say I want it to show between the navigation row (where it shows Main Index, Search, Who's Online, etc. and the top row of the forum summary.

Would I edit the ubbt_registerednav and unregisterednav templates, or would another be better?

Also, what would the exact PHP coding look like to accomplish this?

Joined: Apr 2001
Posts: 25
User
User
Joined: Apr 2001
Posts: 25
some minor misspelling I suppose in line 38 of custombox3pal.php
Code
case "lastest":  


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)