|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
Hi,
At the moment someone can go to ubbthreads.php?Cat= and have no categories selected, and a result display all categories.
Is there a way to avoid this - and perhaps change ubbthreads.php?Cat= to go to say ubbthreads.php?Cat=1,363,364
So if Cat="" then Cat="1,363,364"
Tried a few alternatives, but can't get it to work.
Any thoughts - needless to say I am trying to avoid someone displaying all categories at the same time.
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
|
Addict
Joined: Apr 2002
Posts: 1,768 |
[6.3] That sounds like it should work. I would do it like this: if (empty($Cat)) {<br /> $Cat = '1,363,364';<br />}That would need to be added after $Cat = get_input("Cat","get");and before $Cat is referenced. Hmmmm, I just looked at ubbthreads.php, and noticed that there's an extra get_input("Cat", ...), so the code would have be added after the second one.
|
|
|
|
|
Joined: Feb 2002
Posts: 2,286
Veteran
|
|
Veteran
Joined: Feb 2002
Posts: 2,286 |
Thanks - works fine - I was almost there, but not quite  Tidies my forums up, means that people no longer see a long list of fairly empty forums 
Fans Focus - Focusing on Fans of Sport (Okay - mainly football (the British variety at the moment - but expanding all the time....)
|
|
|
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.
|
|
Posts: 253
Joined: January 2000
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 2042
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 30
|
|
|
|
|
|