Home Page Link in Forum

Problems registering or logging in? Need help with a moderation task? Got a suggestion about how our forums or website should work? This is the place for your forum- and website-related questions and problem reports.

Moderator: markc

Post Reply
User avatar
CraginS
Posts: 769
Joined: Sat Jan 08, 2005 9:11 am
Location: Franconia
Contact:

Home Page Link in Forum

Post by CraginS »

Mark,
On the various forum pages, how about changing the URL behind the club logo in the upper left corner (primary frame?) so that it links to the club home page (http://chgpa.org) instead of to the Forums top level index page (http://chgpa.org/forums/index.php)

Currently there is no "return to home" link on the forum pages.

thanks!


Cragin
User avatar
markc
Posts: 3204
Joined: Fri Dec 05, 2003 12:50 am

Post by markc »

Great suggestion, but trickier than it sounds....

PHP uses config/template files to drive the appearance of all forum
webpages. There's provision to customize the "overall header"
template (eg, with your own image), but not sure if the URL itself
can be customized. Will look into it when I have a chance.

--mark
selbaer
Posts: 7
Joined: Sun Oct 02, 2005 10:25 pm
Location: central florida
Contact:

Post by selbaer »

Open overall_header.tpl and search for

Code: Select all

td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> 
                  <!-- BEGIN switch_user_logged_out -->
                   <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span> 
                  <!-- END switch_user_logged_out -->

That's where the links are in the header. I did insert your main URL! (edited code highlighted in red):

td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">   <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>   <a href="http://chgpa.org/" class="mainmenu">CHGPA Homepage</a>   <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>   <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> 
<!-- BEGIN switch_user_logged_out -->
 <a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a></span> 
<!-- END switch_user_logged_out -->

I hope it is helpful. If you run into some problems just drop me a mail

Image
Image
selbaer
Posts: 7
Joined: Sun Oct 02, 2005 10:25 pm
Location: central florida
Contact:

Post by selbaer »

i wanted to mention,

just save your overall header as like overal header old dot... and leave it on the server and upload a copy of it with the new code and try it out.
this is what i normally do if somebody gives me code to copy and paste and like always : back up the entire db before you make changes...
if it doesn't work out or there is a glitch just rename the old file back

good luck

Image
Image
User avatar
markc
Posts: 3204
Joined: Fri Dec 05, 2003 12:50 am

Post by markc »

Ok, I finally had a moment to do this. Both the sitename and the
site logo on forum pages link to the home page.

selbaer, thanks for the suggestion, but I decided to simply insert
hyperlinks, rather than add a menu item

Mark C.
User avatar
Spark
Posts: 742
Joined: Sat Jan 01, 2005 5:36 am
Location: Evergreen, Colorado

Post by Spark »

Mark,

Your efforts as site admin. are very much appreciated. :)


'Spark
Post Reply