Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
4 registered (Dj Aero, capnbob, Morgan, id242), 46 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/12/04
Posts: 154
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
drkknght00 9
SD 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#177769 - 02/06/07 12:58 PM Context Dependent Island Content
Chuck Weinstock Offline
journeyman
Registered: 04/27/04
Posts: 52
I would like to display different things in an island depending upon which forum (or the main index) is being displayed.

Is there a recommended way of doing this? I can, of course, look at the URL, but I was wondering if something is built-in for this purpose?

Chuck
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#177772 - 02/06/07 01:23 PM Re: Context Dependent Island Content [Re: Chuck Weinstock]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
It would need something like...

if url contains Board/2/ then display this code...

Problem is as soon as you go to showflat then the board number is lost in the URL.

If you find a decent solution let me know ;\)
Top
#177800 - 02/06/07 05:27 PM Re: Context Dependent Island Content [Re: Ian]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 PHP:
if($_GET["board"] == 2) { echo("board 2 content"); }


I have no clue if that would work, but hey thats how you take a variable from the url in php ;).
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177873 - 02/06/07 09:17 PM Re: Context Dependent Island Content [Re: Gizmo]
Chuck Weinstock Offline
journeyman
Registered: 04/27/04
Posts: 52
Seems to me that, given that the board is not always in the URL, the only way to do it is from the post number. That involved database access which is annoying (and at least a little time consuming since it's an extra database access per page). It would be cool if there were some environment-like variable available since someone has that information already.
Top
#177878 - 02/06/07 10:42 PM Re: Context Dependent Island Content [Re: Gizmo]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
True, you'd have to look up the post number to see what forum it belonged to...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177881 - 02/06/07 11:27 PM Re: Context Dependent Island Content [Re: Gizmo]
Chuck Weinstock Offline
journeyman
Registered: 04/27/04
Posts: 52
Someone suggested a custom header for each forum that set a variable that could be accessed by the Island. I could not get this to work, but perhaps there is some global environment that can be set?
Top
#177900 - 02/07/07 06:26 AM Re: Context Dependent Island Content [Re: Chuck Weinstock]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
I haven't tried a custom header yet - but is it tied to the posts as well?

Could we not tell which header was in use and then use the correct box.

Maybe it would be better to have custom margins for each forum, then the boxes could be tailored for those.
Top
#177902 - 02/07/07 07:03 AM Re: Context Dependent Island Content [Re: Ian]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I think board is declaired as a get in the thread list, and as a post in the thread/flat view; should that help anything ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#177904 - 02/07/07 07:47 AM Re: Context Dependent Island Content [Re: Gizmo]
Ian Offline
Registered: 06/05/06
Posts: 4337
Loc: Essex, UK
How much will you charge us for this ;\)
Top
#177938 - 02/07/07 06:03 PM Re: Context Dependent Island Content [Re: Ian]
Gizmo Online   cat

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Frankly I woudlnt' know where to start, so you'd be looking at research + dev time ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image