Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
is it possible to change the 'home' url link?
Avatar
Clinton Kopittke
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 7, 2014 - 7:50 am

Hi there is it possible to change the 'home' url link?

See attached image.

It automatically links back to the home sales page, but the real home is inside a membership environment.

 

I wish to change it so when they click on the forum home they are either taken back to the home of the forum or home of the dashboard to my membership environment and not the main sales/login page.

 

Anyway to change this?

I would love to set it up the breadcrumbs neatly as the simple press forum has it. anyway to do this?

Screenshot_7_01_14_10_39_PM.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 7, 2014 - 8:48 am

Simple:Press - being theme and template driven - then both of these requests involve a small edit to the template displaying the breadcrumbs. In this case the template is called spHead.php and can be found n the /templates folder of the SP theme you are using. It can be edited with our theme editor is desired.

Look for the breadcrumbs display function called sp_BreadCrumbs(). It propbably looks like this:

sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=1', __sp('Home'));

To change the home link you will need to add one extra attribute and to turn off the tree view you need to change the value of the 'tree' attribute. So - as follows:

sp_BreadCrumbs('tagClass=spLeft spBreadCrumbs&tree=0&homeLink=http://your-home-url', __sp('Home'));

Where the tree is set to zero (off) and the new homeLink attribute is added. Just change the 'your-home-url' with the one you want. Please note that the case, ampersands, no spaces etc., are important so it needs tp be exactly as shown.

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Clinton Kopittke
Rookie
Free Members
sp_UserOfflineSmall Offline
Jan 11, 2014 - 6:40 am

Thanks that worked great!!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jan 11, 2014 - 7:03 am

Thanks for the update

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625