News:

Wondering if this will always be free?  See why free is better.

Main Menu

Staff Page Mod

Started by SMFHacks.com Team, May 18, 2006, 06:53:57 PM

Previous topic - Next topic

t.osberger

Quote from: vbgamer45 on January 21, 2007, 07:13:47 PM
You just need to edit the index.template.php of your custom theme and include a link to the staff page
http://www.yoursite.com/index.php?act=staff

<?php

// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;

?>


Would you be able to provide an example based on the above code.  This is the index.php from http://domain name/members/forum/Themes/Ancient_and_Rusted.  Is this the index file you were talking about, or was the one in the root directory of the forum?

vbgamer45

I mean a file called index.template.php that is located in your themes/foldername this file contains the menu, and header and footers.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

mohoganybrwn

Quote from: mohoganybrwn on January 22, 2007, 04:37:32 PM
Hi.  I get a red x, where the staff's photos are supposed to be, also the staff have URL avatars... so how can I fix the red x problem?

can anyone help me with this problem?

Muse

Quote from: vbgamer45 on January 24, 2007, 12:28:57 PM
That's all it does to that file.

Perfect. All up and running. Now I can stop pouting because I can't use your mods :D

bigrossco

i installed 1.5.1 today but on the menu it has the link but not the text and same in the admin area it shows a blank space (where i guess the text should be) but no text I can get to the staff page manualy but would like the text to show on the menu so my users can get to the page

Farmacija

in which language are your forum and which theme you use?
www.farmaceuti.com
www.farmaceuti.com/tekstovi

vbgamer45

Copy text strings from modifications.english.php to all other themes that contain modifications.english.php

or if you are using more thatn one language copy them to modifications.yourlanguage.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Farmacija

and vbgamer already told that in this topic, few post above yours.
www.farmaceuti.com
www.farmaceuti.com/tekstovi

Zuma

Hi

Its a great mod, exactly what I was looking for, thanks a bunch

I just would like to know how I can make a member show up in all groups he is in, instead of just showing the main group

Thats cuz I run a multi-gaming clan, and some of my members are assigned to more than 1 division, I need to make them appear in all groups they are in

vbgamer45

That would be tricky to do at the moment to show multiple groups maybe for the future.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

sleepingstar

i installed this mod, but now i can't remove its. ( i uninstalled but "Staff Configuration" Option still display on admin's menu ) . How to fix this problem ?  >:(


vbgamer45

You will need to edit Sources/Subs.php to remove it. Search for staff
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

moraidh

I installed the files and modifications manually.

In package info, it says:
      
Quote<code>staffsql.php</code>

I uploaded this file into the /forum directory and in the browser address bar entered:

Quotehttp://www.radicalreaction.com/forum/staffsql.php

Is that what you are supposed to do?  Anyhow, all that happened was this message:

QuoteFatal error: Call to undefined function: db_query() in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 6

Line 6 is:

Quotedb_query("CREATE TABLE IF NOT EXISTS `{$db_prefix}staff`

What have I done wrong and what do I do now?

vbgamer45

Add a line of code after <?php
require('ssi.php');
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

moraidh

#254
Sorry in which file?

I did that after the start of the staffsql.php and now get the following error message:

QuoteWarning: main(ssi.php): failed to open stream: No such file or directory in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Warning: main(ssi.php): failed to open stream: No such file or directory in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Fatal error: main(): Failed opening required 'ssi.php' (include_path='.:/usr/share/pear') in /customersites/7/home/httpd/vhosts/radicalreaction.com/httpdocs/forum/staffsql.php on line 3

Line 3 being:

require('ssi.php');

vbgamer45

try changing it to SSI.php
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

JustSimpsons

Hi, when I click on Staff List in the menu it takes me to the Staff List page but the menu looks look i'm on the forum. I was wondering if there is a way to make the Staff List in the menu look active instead of the forum. Here is what I'm talking about:



Thank you.

vbgamer45

Check your index.template.php staff should be in the menu function list of active tabs
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

JustSimpsons

Here is the blurb that is currently in my index.template.php:

// the [staff list] button
if ($context['allow_view_stafflist'])
echo ($current_action == 'staff' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'staff' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=staff">' , $txt['smfstaff_stafflist']  , '</a>
</td>' , $current_action == 'staff' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

vbgamer45

Above that there is a list of actions near the begging of template_menu
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: