Anyone know forum/wiki stuff?

Thread in 'Discussion' started by caffeine, 13 Nov 2006.

  1. Wondering if anyone knew a way to integrate front page / wiki / forum so that no matter where you are, you're one click away?
     
  2. cdsboy

    cdsboy Unregistered

    i like what you just did.
     
  3. tepples

    tepples Lockjaw developer

    It has something to do with editing the templates so that the code that displays the big banner image has links to "home", "wiki", and "forum". Also, it'd probably be a good idea to change the link color in "Saphic" to make the links stand out better from the text.


    To learn how, see styles admin.
     
  4. There's two template / board style / skin / whatever, so you'll need to edit them both.


    In phpBB, you need to edit the file that "control" the header menu. It should be "overall_header.tpl" placed in the */forum/templates/<template's name>/ folder.


    Now, because these two templates are different, the things you must change are also different.

    /////////////////

    subSilver


    Find

    Code:
    <!-- END switch_user_logged_out -->
    (it should be on line 23B)(anyway, CTRL-F is your friend)

    Then, add


    Code:
    <a href="http://www.tetrisconcept.com/wiki/" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="Wiki" hspace="3" />Wiki</a>&nbsp;
    So in the end, you should get something like

    Code:
    <!-- BEGIN switch_user_logged_out -->
          &nbsp;<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>&nbsp;
          <!-- END switch_user_logged_out --> 
    <a href="http://www.tetrisconcept.com/wiki/" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="Wiki" hspace="3" />Wiki</a>&nbsp;
          </span></td>
    Et voil, you've got another button leading to the wiki !
    [​IMG]
    //////////////

    \\\\\\\\\\\\\\
    Saphic

    Find
    Code:
          <ul class="nav_top">
           <li><a href="{U_FAQ}">{L_FAQ}</a>
           <li><a href="{U_SEARCH}">{L_SEARCH}</a>
           <li><a href="http://www.tetrisconcept.com">Wiki</a>
           <li><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>
           <li><a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
           <!-- BEGIN switch_user_logged_out -->
           <li><a href="{U_REGISTER}">{L_REGISTER}</a>
           <!-- END switch_user_logged_out -->
           <li><a href="{U_PROFILE}">{L_PROFILE}</a>
           <!-- BEGIN switch_user_logged_in -->
           <li><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
           <!-- END switch_user_logged_in -->
           <li><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
          </ul>
    (line 3B) in */templates/saphic/overall_header.tpl

    Add
    Code:
           <li><a href="http://www.tetrisconcept.com">Wiki</a>
    anywhere between "<ul>" and "</ul>", but not between any existing "<li>". I think that placing it to the right of "FAQ" is a good idea, so in the end, that should be something like:
    Code:
          <ul class="nav_top">
           <li><a href="{U_FAQ}">{L_FAQ}</a>
           <li><a href="{U_SEARCH}">{L_SEARCH}</a>
           <li><a href="http://www.tetrisconcept.com">Wiki</a>
           <li><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a>
           <li><a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
           <!-- BEGIN switch_user_logged_out -->
           <li><a href="{U_REGISTER}">{L_REGISTER}</a>
           <!-- END switch_user_logged_out -->
           <li><a href="{U_PROFILE}">{L_PROFILE}</a>
           <!-- BEGIN switch_user_logged_in -->
           <li><a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
           <!-- END switch_user_logged_in -->
           <li><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a>
          </ul>
    But that's not finished !

    Doing like so make the menu ugly
    [​IMG]

    So what I suggest is to eliminate the "usergroup" item. Just erase the following line

    Code:
           <li><a href="{U_GROUP_CP}">{L_USERGROUPS}</a>
    That should make it.


    EDIT: and Tepples is right: the links don't stand out at all. Edit Saphic.css (same folder as overall_header.tpl), find
    Code:
    a.postlink:link { text-decoration: none; color : #4F4F4F }
    Replace it with
    Code:
    a.postlink:link { text-decoration: none; color : #BA2592}
    for a dark pink like that,
    Code:
    a.postlink:link { text-decoration: none; color : #A1BA25 }
    for this green, your pick.
     
  5. wow! thanks a lot. this will come in very handy. now i just need to research how people mod their wikis. (most people enter this site through wiki and exity through wiki.)
     
  6. What happened to your blog?
     
  7. It was redesigned. [​IMG]
     

Share This Page