PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
glidergirl
Hangin' Around


Joined: Feb 28, 2004
Posts: 35
Location: Kentucky

PostPosted: Sat Mar 20, 2004 10:40 pm Reply with quote Back to top

I'd like to add a welcome message/link to rules in the header of our forums. I'm assuming I could do this by adding HTML to a file -- but I don't know which one.

A. Is there a chance this could affect functionalitiy?
B. What file?

Thanks for your help!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
corky
Regular
Regular


Joined: Feb 29, 2004
Posts: 63

PostPosted: Sat Mar 20, 2004 10:46 pm Reply with quote Back to top

Try Header.php
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15229
Location: Kansas

PostPosted: Sat Mar 20, 2004 11:35 pm Reply with quote Back to top

GG,

The header.php file is for the nuke site and appears on every page so that is not what you would use. Also, you should never change the header.php file. You would actually change the includes/my_header.php Wink

There would be several ways actually/unfortunately. I will give you but one as an example. This is using the standard subSilver template.

You can modify the modules/Forums/templates/subSilver/overall_header.tpl file. Now this particular example will show on every forum page. Towards the bottom of this file you will see code similar to this
Code:
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
   <tr>
      <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr>
            <table cellspacing="0" cellpadding="2" border="0">
               <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><center>&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;
                  &nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</center></span></td>
               </tr>
            </table></td>
         </tr>
      </table>
To add a message right after that, try adding this code
Code:
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
   <tr>
      <td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr>
            <table cellspacing="0" cellpadding="2" border="0">
               <tr>
                  <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><center>This is a test message</center>
                  </td>
               </tr>
            </table>
         </tr>
      </td>
   </tr>
</table>
That should give you an idea of the methodology.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
glidergirl
Hangin' Around


Joined: Feb 28, 2004
Posts: 35
Location: Kentucky

PostPosted: Sun Mar 21, 2004 12:29 am Reply with quote Back to top

Awesome. Thank you so much for all your expertise!
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum