Previous Thread
Next Thread
Print Thread
Rate Thread
#237745 02/23/2003 8:53 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've attached the a new version of the Forum List Pal to this post. The change is that it's possible to select how many columns the forum list should be. It seems to work on my test board.

Just unzip the file and save it over one of your customboxXpal.php files in your pals/ directory. If you set it as any other pal box than 1, you will have to change which one in the variable at the top of the script.

Also note that if you are caching the information in this pal box you must set force public to 1, otherwise users will see forums they are not supposed to.
Attachments
70534-forumlistpal-1_1.zip (0 Bytes, 16 downloads)

Last edited by Gardener; 02/28/2003 6:57 PM.
Sponsored Links
c0bra #237746 02/24/2003 1:19 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I set this up yesterday, played with it, and then took it back down. A couple of suggestions:
  • Start a new thread for this mod. It's gonna get lost here in the land of IIP
  • Take out the code that forces the list to start a new row at the half way point (I've already done it on my copy). The column is too large and it causes all of the IIP Pals to take on the same dimentions.
  • There doesn't seem to be any access level checking. It did not display hidden forums, even when I was logged in as admin on my board.
Work out the "kinks" and it would make an EXCELLENT forum menu!

c0bra #237747 02/24/2003 1:25 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I split this off from the main IIP post... it was on Page 32 for me...
I wanted to be sure that anyone who might want your addon could find it easily. They might not in that thread. That thread is waaaaaaaay long.

Daine #237748 02/24/2003 1:59 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Thanks Josh!

Daine #237749 02/24/2003 7:02 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Bah! I use threaded mode and it shows up right at the top! =] What do I care for those who use icky flat mode? ;]

Thanks for that.

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
It depends on how long your forum names are if it will be too wide, looked perfect for me. =] Always has too on the static list I've had for my site for ages so I didn't think there would be a problem. =] I'll add a config option for how many columns there should be.

It does check for access level, or rather, it uses the checking that IIP does, so if it's after some pal that screws it up it won't work. Also, if you have force public it will be forced to a public listing, of course. The information that is cached shouldn't be specific to one user. There is no other way I can do this that I can think of, other than removing the caching option completely, but I felt that it would be better to set that up in the config instead.

c0bra #237751 02/24/2003 7:28 AM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I'll check my force public settings. PAL box!

c0bra #237752 02/24/2003 7:54 AM
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
OK, I've now released version 1.1 which includes the possibility to change how many columns the list should be. Haven't changed how it defines which boards to display, need more input before I know if there is something I can do with that bit.

This is written for 5.3, but seems to work even for 5.1 if the variables $tbopen and $tbclose are set to an open and closing table tag.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I'll check it out tonight

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Small bug found. I had missed one $CustomBox1Data variable which can cause the cache update to be a bit off. I've updated the zip in the first post of this thread with the latest version.

For those who have it installed (is anyone using it?), you need to change the following row:

Code
<br />	if ((!$LastCacheTime) || (!$CustomBox1Data) || ($LastCacheTime < ($date - ($cbcache * 60)))) {<br />

To this:
Code
<br />	if ((!$LastCacheTime) || (!$cbdata) || ($LastCacheTime < ($date - ($cbcache * 60)))) {<br />

Sponsored Links

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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
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 20221218)