collapse

Author Topic: Icon For Top To Link To Wiki  (Read 720 times)

0 Members and 1 Guest are viewing this topic.

Offline IBRRORG

  • Practiced
  • *
  • Posts: 64
  • OS:
  • Windows Vista/Server 2008Windows Vista/Server 2008
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • International Brotherhood of Rail Riders
Icon For Top To Link To Wiki
« on: November 19, 2009, 10:45:19 PM »
Is there a FAQ or whatever to add an icon to the top when clicked it will shoot me to my wiki?  I have mediawiki, BTW, and have an extension that allows my SMF users cleared to automatically log into the wiki.  I guess I first need to know the dimensions of the icon (I have one already made), where/how to install it.  I should note that I would want it to say Magellan when hovered over.

I don't mind doing the work, just need a pointer in the direction to start.

Thanx as always!

Pic attached.

Thanx.

* anwiki.jpg (6.44 kB, 135x135 - viewed 82 times.)
« Last Edit: November 19, 2009, 10:47:09 PM by IBRRORG »
Vincit Omnia Veritas

Offline Shortie

  • Administrator
  • Authority
  • *
  • Posts: 5710
  • The Ultimate Boss
  • OS:
  • Windows 7/Server 2008 R2Windows 7/Server 2008 R2
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • Graphics Mayhem
Re: Icon For Top To Link To Wiki
« Reply #1 on: November 20, 2009, 02:42:14 AM »
Hi

Let me know where you want it in the order of the menu and I will get the code

The icon should be 128x128

If you want one I can make a quick on for ya based on your image

Shortie


Thank You, "Guest" For Reading My Post.


Offline IBRRORG

  • Practiced
  • *
  • Posts: 64
  • OS:
  • Windows Vista/Server 2008Windows Vista/Server 2008
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • International Brotherhood of Rail Riders
Re: Icon For Top To Link To Wiki
« Reply #2 on: November 20, 2009, 09:11:55 AM »
thanx!  i would place it in between the home and forum buttons.  i believe u still have access to the site thru the old smftesting acc't.  if not simply let me know or simply tell me how to place the code and i can do it.  thanx again!
Vincit Omnia Veritas

Offline Shortie

  • Administrator
  • Authority
  • *
  • Posts: 5710
  • The Ultimate Boss
  • OS:
  • Windows 7/Server 2008 R2Windows 7/Server 2008 R2
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • Graphics Mayhem
Re: Icon For Top To Link To Wiki
« Reply #3 on: November 20, 2009, 05:08:53 PM »
Hi Ya

Here is the code

In Index.template.php in the playground theme

FIND

Code: [Select]
echo '
  ' . $txt['gmforum'] . '' . $txt['gmforum'] . ' ';


And REPLACE with

Code: [Select]
echo '
  ' . $txt['gmmagellan'] . '' . $txt['gmmagellan'] . ' ';

echo '
  ' . $txt['gmforum'] . '' . $txt['gmforum'] . ' ';


Just change http://YOUR-URL-HERE to what you want and place the icon in

/playground_XXXXX/images/dicons

here is a quick icon for you as well



You will also need to add the text string to

languages/ThemeStrings.english.php

just open the file and FIND

Code: [Select]
$txt['gmactivity'] = 'Activity';

and replace with

Code: [Select]
$txt['gmactivity'] = 'Activity';
$txt['gmmagellan'] = 'Magellan';

For the test to show up you will need to flush the Cache after the files have been uploaded

AS AWAYS Backup first

Shortie
* wiki.png (10.66 kB, 128x128 - viewed 56 times.)

Thank You, "Guest" For Reading My Post.


Offline IBRRORG

  • Practiced
  • *
  • Posts: 64
  • OS:
  • Windows Vista/Server 2008Windows Vista/Server 2008
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • International Brotherhood of Rail Riders
Re: Icon For Top To Link To Wiki
« Reply #4 on: November 20, 2009, 10:37:13 PM »
works like a charm!  thanx!  i may want to play w/the icon, but all systems go!
Vincit Omnia Veritas

Offline Shortie

  • Administrator
  • Authority
  • *
  • Posts: 5710
  • The Ultimate Boss
  • OS:
  • Windows 7/Server 2008 R2Windows 7/Server 2008 R2
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • Graphics Mayhem
Re: Icon For Top To Link To Wiki
« Reply #5 on: November 21, 2009, 02:54:03 AM »
Cool

If you want to make icons for each colour scheme then let me know and I will give you the extra code

Shortie

Thank You, "Guest" For Reading My Post.


Offline Shortie

  • Administrator
  • Authority
  • *
  • Posts: 5710
  • The Ultimate Boss
  • OS:
  • Windows 7/Server 2008 R2Windows 7/Server 2008 R2
  • Browser:
  • Firefox 3.5.5Firefox 3.5.5
    • View Profile
    • Graphics Mayhem
Re: Icon For Top To Link To Wiki
« Reply #6 on: November 21, 2009, 06:40:06 AM »
Just had a thought if you would prefer to just show the icon if users are logged in then a do this

FIND

Code: [Select]
echo '
     ' . $txt['gmmagellan'] . '' . $txt['gmmagellan'] . ' ';

AND REPLACE with

Code: [Select]
if ($context['user']['is_logged'])
echo '
     ' . $txt['gmmagellan'] . '' . $txt['gmmagellan'] . ' ';


Thank You, "Guest" For Reading My Post.


Offline IBRRORG

  • Practiced
  • *
  • Posts: 64
  • OS:
  • Windows VistaWindows Vista
  • Browser:
  • Firefox 3.5.7Firefox 3.5.7
    • View Profile
    • International Brotherhood of Rail Riders
Re: Icon For Top To Link To Wiki
« Reply #7 on: February 15, 2010, 12:20:48 AM »
so, i got upgraded to RC2 and now my globe is gone and i cannot find this same above script anywhere and am hoping you might be able to help me!  thanx
Vincit Omnia Veritas

Offline Shortie

  • Administrator
  • Authority
  • *
  • Posts: 5710
  • The Ultimate Boss
  • OS:
  • Windows 7Windows 7
  • Browser:
  • Firefox 3.6Firefox 3.6
    • View Profile
    • Graphics Mayhem
Re: Icon For Top To Link To Wiki
« Reply #8 on: February 15, 2010, 02:27:41 AM »
Okay find

Code: [Select]
echo '
     ' . $txt['gmforum'] . '' . $txt['gmforum'] . ' ';

and replace with

Code: [Select]
echo '
     ' . $txt['gmforum'] . '' . $txt['gmforum'] . ' ';

echo '
     ' . $txt['gmforum'] . '' . $txt['gmforum'] . ' ';

Any problems give me a shout

Back up your file first though just in case

Shortie

Thank You, "Guest" For Reading My Post.


Offline IBRRORG

  • Practiced
  • *
  • Posts: 64
  • OS:
  • Windows VistaWindows Vista
  • Browser:
  • Firefox 3.5.7Firefox 3.5.7
    • View Profile
    • International Brotherhood of Rail Riders
Re: Icon For Top To Link To Wiki
« Reply #9 on: February 15, 2010, 08:01:47 AM »
Guess this depends on your reply on the Playroom Basic.
Vincit Omnia Veritas

 


* Search



* Latest Activity.

A GM Wallpaper by NerdBoy
[Yesterday at 07:31:24 AM]


Next Topic Page 1.2 by NerdBoy
[December 15, 2010, 06:28:37 PM]


Windows 8 Wallpaper Concepts by NerdBoy
[December 14, 2010, 09:31:08 PM]


Who can make me a custom mod? by VintageJetBoats
[December 13, 2010, 10:35:47 AM]


December 2010 Uptop Logo Contest by NerdBoy
[December 12, 2010, 07:01:48 PM]


Icon request by NerdBoy
[December 10, 2010, 06:39:27 PM]


Ultimate Weather by NerdBoy
[December 10, 2010, 12:22:41 PM]


General Wallpapers by NerdBoy
[December 10, 2010, 12:17:18 PM]


Logo request by NerdBoy
[December 09, 2010, 08:26:51 AM]


Nerdboy's Birthday by NerdBoy
[December 07, 2010, 06:02:44 AM]