Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
I have a tricky question
I have used Josh's Generic UBB.Threads page throughout my site and was wondering how I can get these pages to be identified on the 'Who is online' screen? At the moment all you see are blank 'Location' boxes.

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Edit your languages > online.php file.

Add a string as follows:

Code
 <br />$ubbt_lang['Your_Page_Name'] = 	"Your Page Name Description"; <br />


Your_Page_Name is the name of the file of the page being viewed, minus the .php extension.

Example:
Code
 <br />$ubbt_lang['index'] = 	"At the Entrance"; <br />


Hope that helps.

Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
wow, thanks! I had no idea it would be that easy

Last edited by pootlecat; 02/11/2005 4:28 PM.
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Just one more question
I want to change the coding so that registered users see one page and unreg people see another - using the custom page template.

I was thinking another if statement in here would work well but I am not sure how to check if they are logged in or not:
Code
 if (!$debug) {<br />   	include("$thispath/templates/content/idb/search.tmpl");<br />	} 

Any ideas?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Code
<br />if (!$debug) {<br />    if ($user['U_Username']) {<br />          include("$thispath/templates/content/idb/registered.tmpl");<br />    } else {<br />   	include("$thispath/templates/content/idb/unregistered.tmpl");<br />    }<br />}<br />


Rename templates accordingly.

Sponsored Links
Joined: Jul 2002
Posts: 79
Power User
Power User
Offline
Joined: Jul 2002
Posts: 79
Thanks so much - that works like a charm!


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
hatter
hatter
USA
Posts: 69
Joined: January 2001
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)