|
|
|
|
|
Joined: Sun Apr 01 2007, 02:43PM
Posts: 103
|
Wed Jun 22 2011, 12:29PM
|
|
|
Not sure where to post this and if its ok to share my findings with other members here! I am not a proffesional coder so if anyone finds an error please report it so i can update code :)
When fs_sitelinks.php was updated, i thought it would be cool if my footer links would work with this aswell.
After some trail and error i worked out how its done and all the code i used came out FS Netork Themes!
Note!: Some steps like css rules etc may be different depending on your skin. In this example i used the GG theme!
IMPORTANT!: Always back up your original files first before u start to edit!!!!
Step 1:
Open yourtheme/style.css with a text editor and ad the footer css. Example i used for GG theme:
.footer-links span.active a { color:#cccccc; font-weight:bold; }
Step 2:
Open yourtheme/theme.php and fad these settings to your footer links
case 'bottom':
$linkstyleset['linkdisplay'] = 1;
$linkstyleset['prelink'] = '';
$linkstyleset['postlink'] = '';
$linkstyleset['linkstart'] = '<span>';
$linkstyleset['linkend'] = '</span>';
$linkstyleset['linkstart_hilite'] = '<span class="active">';
$linkstyleset['linkclass_hilite'] = '';
$linkstyleset['linkseparator'] = '&bull; ';
break;
default: // if no LINKSTYLE defined
$linkstyleset['linkdisplay'] = 1;
define('PRELINK', '');
define('POSTLINK', '');
define('LINKSTART', '');
define('LINKSTART_HILITE', '');
define('LINKEND', '');
define('LINKALIGN', 'left');
Footer links can be added with
{LINKSTYLE=bottom}
{SITELINKS=flat:2}
Now save your files, upload to your server and footer links should now work with active link status ....
I hope some might find this helpfull :)
[ Edited Wed Jun 22 2011, 07:41PM ]
|
|
|
|
Joined: Sun Apr 01 2007, 02:43PM
Posts: 103
|
Wed Jun 22 2011, 06:09PM
|
|
|
|
lol never mind i looked at the gradient theme just now and noticed it was allready implemented there so ...
|
|
|
|
Joined: Fri Nov 17 2006, 05:30PM
Posts: 482
|
Wed Jun 22 2011, 07:16PM
|
|
|
last 4-5 themes have links (SITELINKS=flat:3) on footer. better way is to use {LINKSTYLE=bottom}. in $linkstyleset['prelink'] you can put ul tags.
|
|
|
|
Joined: Sun Apr 01 2007, 02:43PM
Posts: 103
|
Wed Jun 22 2011, 07:48PM
|
|
|
|
yes thnk u veskoto, i just looked a little better at the gradient theme and updated the first post, i was looking how to do this for a while and never realised it was allready in the newer themes ...
|
|
|
|
|
|
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
|
|
|