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'] 		= '&amp;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 ]
Back to top
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 ...
Back to top
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.
Back to top
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 ...
Back to top
Moderators: SonicE, veskoto, SecretR, Stoewarius, steved, McFly, Cameron, yanniiwanow
Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF

Jump:     Back to top