Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Iann128, GregK, SteveS, SD, ayawkho), 39 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 03/21/08
Posts: 224
Top Posters (30 Days)
Ruben 61
SD 52
Gizmo 48
gliderdad 33
Dunny 21
driv 18
dbremer 16
Mark S 13
Stan 12
Iann128 10
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 2 of 2 < 1 2
Topic Options
#235498 - 03/11/10 11:28 AM Re: Editing the Header Template to include a Wiki Link? [Re: lightningrod]
Chosen Offline
member
Registered: 01/26/05
Posts: 194
Loc: Cincinnati, OH
I think the user list is only viewable to logged in used as default, but if not here is how to get there. First, go to your control panel. Click "Group Management" under "Forums" section in the left nav. Then on the line that is for "Guests" click "Site". Make sure that the first box "Can view the Member List" is set to 0. If not, then change it and hit the "Update this Group's Permissions" button at the bottom.

Now to edit the header click "Templates" under the "Display Options" section in the left nav. Once you are on the template editor page scroll down the list until you see header.tpl. Select it and then hit the "Edit Selected Template" button.

Copy the contents of the original template into notepad so that you'll have it in case something goes wrong.

I have one header that is already edited so this may not be the exact thing to look for but try searching for a line that has the following on it:
Code:
<a href="{ubb url="ubb=showmembers"}">{$lang.USER_LIST}</a>

Then add your link on a new line below it.

Does that help? Feel free to ask more questions.

Also, realize that any changes you make to the templates will have to be reapplied whenever version 8 comes out. Make sure you keep a list of things to change whenever you upgrade.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#235502 - 03/11/10 11:53 AM Re: Editing the Header Template to include a Wiki Link? [Re: Chosen]
SD Online   partay
Registered: 04/19/07
Posts: 4031
Loc: SoCal, USA
whenever you make a modification (suggestion here), add a comment to the file..

for me in .tpl (templates), i add {* SD:Mod - reason for modification *}

for php files, i add // SD:Mod - reason for modification

this allows for a utility like grep (free) to just search for any file with "SD:Mod" in it as a reminder.

of course Beyond Compare (not a free utility) will also note any differences as well..

it's just good to put in an indicator of sorts in any file that you touched it and for what reason and where.. :2cents:
_________________________

Threads tutorials . Threads & Wordpress experts . UBB resume

If I you, click this link as to why
Top
#235516 - 03/11/10 02:03 PM Re: Editing the Header Template to include a Wiki Link? [Re: Chosen]
lightningrod Offline
enthusiast
Registered: 10/14/09
Posts: 275
Thanks guys. It didn't work though

Nothing happened. It's blank

I added this in the header.tpl


Code:
{if $user_list}
<a href="{ubb url="ubb=showmembers"}">{$lang.USER_LIST}</a> &nbsp;&nbsp;&nbsp;
{/if}

{* LR:Mod - reason for modification - self search link *}
<a href="{ubb url="ubb=selfsearch"}">{$lang.SELF_SEARCH}</a>

{if $config.CALENDAR}
<a href="{ubb url="ubb=calendar"}">{$lang.CALENDAR}</a> &nbsp;&nbsp;&nbsp;
{/if}



I copied activetopics.inc.php and renamed it selfsearch.inc.php and uploaded it into the scripts directory on the server
Top
#235517 - 03/11/10 02:28 PM Re: Editing the Header Template to include a Wiki Link? [Re: lightningrod]
Chosen Offline
member
Registered: 01/26/05
Posts: 194
Loc: Cincinnati, OH
First thing is that it will show up for anyone if you have it in that spot. If you only want it to show up put it before the {/if} after the User List link.

In your link you have it as {$lang.SELF_SEARCH}. This would work if you created an entry in the language editor. The easy way is to just use "Self Search" instead of {$lang.SELF_SEARCH}.

If you want to add it to your language file you would need to go to "Languages" under "Display Options." Then click the "Language Editor" tab. To the right of 'Choose Specific Language File:" scroll down until you see generic.php. Select that and hit go. Scroll down to the bottom of the page and enter a new key which will be
key = SELF_SEARCH
string = Self Search

That is a lot of extra work just to get the name in there though if you are only going to use it in the one place.

That will get the link to show up, but I don't think the script will work as is. I guess how to set that up would work better at UBBDev, which I see you already have a couple threads about.
Top
#235518 - 03/11/10 02:30 PM Re: Editing the Header Template to include a Wiki Link? [Re: lightningrod]
Ruben Offline

Registered: 12/20/03
Posts: 4268
Loc: Lutz,FL
Well to start with if you only want registered users to see it it needs to be moved up a bit.
Php Code:
{if $user_list}
<a href="{ubb url="ubb=showmembers"}">{$lang.USER_LIST}</a> &nbsp;&nbsp;&nbsp;
{/if}

{* LR:Mod - reason for modification - self search link *}
<a href="{ubb url="ubb=selfsearch"}">{$lang.SELF_SEARCH}</a>
 


Move it above the (/if) to:

Php Code:
{if $user_list}
<a href="{ubb url="ubb=showmembers"}">{$lang.USER_LIST}</a> &nbsp;&nbsp;&nbsp;
{* LR:Mod - reason for modification - self search link *}
<a href="{ubb url="ubb=selfsearch"}">{$lang.SELF_SEARCH}</a>
{/if}
 


Why is it blank could be several items.
Such as does the language file key self_search have any text in it so at least something shows.
Should have been added to the generic.php file
Key: SELF_SEARCH
String: Self Search.
Then the question is does the actual script work.
_________________________
Blue Man Group
Top
#235519 - 03/11/10 02:38 PM Re: Editing the Header Template to include a Wiki Link? [Re: Ruben]
lightningrod Offline
enthusiast
Registered: 10/14/09
Posts: 275
Thanks guys, I did exactly what you said here

It still shows up when I log out (but that is not a major problem for me)


But there is a weird space between Forum List and User List

?


Ok, that space between Forum List and User List is only there when I'm logged out



Ok nevermind, maybe it's because My_Stuff disappears when I log out, and I never noticed that space in between before


Edited by lightningrod (03/11/10 02:43 PM)
Top
#235520 - 03/11/10 02:48 PM Re: Editing the Header Template to include a Wiki Link? [Re: lightningrod]
Ruben Offline

Registered: 12/20/03
Posts: 4268
Loc: Lutz,FL
It will show because you allow guests to see the user list.
Control Panel » Group Management »
Guests Site Permissions
First option is
Can view the Member List
set it to 0 for guests.
Then both the user list and self search will only be visible when logged in as a user.

BTW that space may be due to a reserved spot for the message indicator.


Edited by Ruben (03/11/10 02:50 PM)
Edit Reason: added BTW
_________________________
Blue Man Group
Top
#235521 - 03/11/10 02:52 PM Re: Editing the Header Template to include a Wiki Link? [Re: Ruben]
lightningrod Offline
enthusiast
Registered: 10/14/09
Posts: 275
Originally Posted By: Ruben
It will show because you allow guests to see the user list.
Control Panel » Group Management »
Guests Site Permissions
First option is
Can view the Member List
set it to 0 for guests.
Then both the user list and self search will only be visible when logged in as a user.



Thanks. I want Guests to see the User List


How can I put it between My_Stuff and User List, instead?


Or between Calender and Active_Topics?


Can I make the Calender disappear for Guests?


Edited by lightningrod (03/11/10 02:58 PM)
Top
#235522 - 03/11/10 02:59 PM Re: Editing the Header Template to include a Wiki Link? [Re: lightningrod]
Ruben Offline

Registered: 12/20/03
Posts: 4268
Loc: Lutz,FL
move it above the:
{if $user_list}
_________________________
Blue Man Group
Top
#235523 - 03/11/10 03:01 PM Re: Editing the Header Template to include a Wiki Link? [Re: Ruben]
lightningrod Offline
enthusiast
Registered: 10/14/09
Posts: 275
Originally Posted By: Ruben
move it above the:
{if $user_list}



It didn't work between My_Stuff and User List

It disappeared

I can try between Calender and Active Topics


But where can I make the Calender disappear for Guests?


Ok I'm going to leave it like this for now. There is no other way. If I ever want it to disappear for Guests I'll just put it before the User List and make the User List disappear for Guests


thanks


Edited by lightningrod (03/11/10 03:08 PM)
Top
Page 2 of 2 < 1 2



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Edit Post
by Bert
Today at 01:19 PM
A positive note
by SteveS
Yesterday at 09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Forum Stats
10214 Members
36 Forums
33667 Topics
180917 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image