Previous Thread
Next Thread
Print Thread
Hop To
custom island shows when logged in?
#263485 02/11/2020 1:54 PM
Joined: Dec 2003
Posts: 6,048
Likes: 3
Ruben Offline OP
OP Offline
Joined: Dec 2003
Posts: 6,048
Likes: 3
I have never attempted this but how would I go about adding a custom island to display after a user registers.
It is okay if it is blank for guests.
Would I start with using the regonly or is that going away?
I think I read that somewhere..


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: custom island shows when logged in?
Ruben #263486 02/11/2020 2:08 PM
Joined: Jun 2006
Posts: 15,868
Likes: 1
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,868
Likes: 1
If the global of the script page function utilizes $userob on that page you can:

Detect a Guest:
Code
	if(!$userob->is_logged_in) {
		echo("Guest");
	}

Detect a Logged in User:
Code
	if($userob->is_logged_in) {
		echo("HAI!");
	}

You could use those bits to set a variable and have a template trigger read the variable and display an island.

If you mean in the sidebars, you'd have to rejigger how they function in order to inject an additional island only for regged users.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: custom island shows when logged in?
Ruben #263487 02/11/2020 2:17 PM
Joined: Dec 2003
Posts: 6,048
Likes: 3
Ruben Offline OP
OP Offline
Joined: Dec 2003
Posts: 6,048
Likes: 3
Thanks I will give that a try.
Or should I post at UBBDEV


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Re: custom island shows when logged in?
Ruben #263488 02/11/2020 2:28 PM
Joined: Jun 2006
Posts: 15,868
Likes: 1
UBB.threads Developer
Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,868
Likes: 1
Probably best at UBBDev as modifications to the base code are unsupported, and Dev is a development community.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Re: custom island shows when logged in?
Ruben #263491 02/11/2020 2:42 PM
Joined: Dec 2003
Posts: 6,048
Likes: 3
Ruben Offline OP
OP Offline
Joined: Dec 2003
Posts: 6,048
Likes: 3
Okay I will test a bit and if I get stuck I will post there.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
AWS Lightsail platform
by jjjjj - 02/20/2020 7:27 AM
Users cant register after upgrade to Version 7
by Jim0421 - 02/13/2020 11:32 PM
Looking for best site firewall and CDN service
by Ruben - 02/11/2020 3:01 PM
custom island shows when logged in?
by Ruben - 02/11/2020 1:54 PM
Who's Online Now
3 members (Gizmo, isaac, JAISP), 74 guests, and 44 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200221)