Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
I'd like to add a Site Links portal, just like the one on the left side of the screen here, but I don't see it as a portal layout option in the control panel. How do you do this.....Then how do you create the links for it to know which pages to go to. Sorry for so many questions.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You'll want to create a Custom Island for that, then you can place it where you want it. Here's what our Site Links one looks like, so you can adjust accordingly:

PHP Code

/* BODY HERE */
$body = <<<EOF
<a href="https://www.ubbcentral.com">Home</a><br />
<a href="https://www.ubbcentral.com/features.php">Features</a><br />
<a href="https://www.ubbcentral.com/docs.php">Documentation</a><br />
<a href="https://www.ubbcentral.com/purchase.php">Pricing & Order</a><br />
<a href="https://www.ubbcentral.com/members/members.php">Members Area</a><br />
<a href="https://www.ubbcentral.com/support.php">Support Options</a><br />
<a href="https://www.ubbdev.com">UBBDev.com</a><br />
<a href="http://www.ubbskins.com">UBBSkins.com</a>
EOF;
 

Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
Thanks Rick, you have been a big help.

Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
Rick, I have tried several times without success to follow these instructions you gave me to do this, and have yet to succeed. It keeps telling me that there is a syntax error present. Can you or someone see what the problem might be on my control panel, and possibly create the links I need. Thanks.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
You might have some extra formatting left over from experimenting.
Try editing the island again.
Delete everything.
Insert a default code such as:
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
EOF;
That is what a empty island code should be.
Then try inserting what Rick posted in the code so it looks like:
Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<a href="https://www.ubbcentral.com">Home</a><br />
<a href="https://www.ubbcentral.com/features.php">Features</a><br />
<a href="https://www.ubbcentral.com/docs.php">Documentation</a><br />
<a href="https://www.ubbcentral.com/purchase.php">Pricing & Order</a><br />
<a href="https://www.ubbcentral.com/members/members.php">Members Area</a><br />
<a href="https://www.ubbcentral.com/support.php">Support Options</a><br />
<a href="https://www.ubbdev.com">UBBDev.com</a><br />
<a href="http://www.ubbskins.com">UBBSkins.com</a>
EOF;


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
Ruben, the example you gave is exactly what shows up in the area to put all that stuff. I did just a single one line test to see if I was on the right track. I just changed the www.ubb portion to reflect my own url, and everything else is exactly the same. And it still says syntax error on line # 7. Im assuming I click on the Custom Island box in the control panel to create all this stuff in.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Okay. If you tried the code posted and it works.
Then I can only assume that possibly you need a full path not a shortcut.
Can you post what you tried?
Also the url to the site might help.
Line 7 does nothing to us if we don't know what line 7 has.
And yes it would be a custom island you would enter this code in.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
Ruben, here you go.

Editted for security reasons.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Well you may want to delete some url stuff in your post.
Meaning some people can exploit your path.
But I see off the bat you have a issue with the eof; part
You have a extra eof tag in the file
edit it to be:

Code
/* PHP CODE HERE */

/* BODY HERE */
$body = <<<EOF
<a href="http://www.hotrodinlines.com">Home</a>< br/>
EOF;


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I see you have added some items in the menu. But you have a little bit of format issues as well as url issues with your links.
Collectibles goes to "http://www.hotrodinlines.com/collectables.php"
Which does not exist.
Also the br tag in the html link is not formatted correctly so it is a running line to the home page link instead of a line feed and shows on the next line.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 25
J
JSM
Offline
newbie
newbie
J Offline
Joined: Jan 2010
Posts: 25
Ruben, thanks a lot. That gave me the info I needed to do this, many thanks.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Gizmo, Nightcrawler), 553 guests, and 186 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)