Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] 'Back to Top' Mod and a button Q
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
[Solved] 'Back to Top' Mod and a button Q
PostPosted: 03/12/2007 4:04 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 12:19 AM
greatbrE.gif
I added this mod tonight.

I wondered if I can make it so that the link isn't underlined like the 'who is online' link next to it?

Also I don't really like it where it is, is it possible to have it as a link next to the 'mark all forums read' link?

Code:
##############################################################
## MOD Title: Back To Top
## MOD Author: Rambo4104 < > (Ryan Smith) http://www.thesaltinez.com/
## MOD Description:  Adds a link on the index footer that directs
##           to the top of the page without reloading.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 4
##         index.php
##         includes/page_header.php
##         language/lang_english/lang_main.php
##         templates/subSilver/index_body.tpl
##
##
## Included Files: (N/A)
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##      Some templates come with something like this,
##      but for those who don't, here you go.
##
##############################################################
## MOD History:
##
##   2007-03-06 - Version 1.0.1
##      - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]------------------------------------------
#

index.php

#
#-----[ FIND ]------------------------------------------
#

      'L_ONLINE_EXPLAIN' => $lang['Online_explain'],

#
#-----[ AFTER, ADD ]------------------------------------
#

      'L_BACK_TO_TOP' => $lang['Back_to_top'],

#
#-----[ OPEN ]------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]------------------------------------
#

$lang['Back_to_top'] = 'Back to top';

#
#-----[ OPEN ]------------------------------------------
#

includes/page_header.php

#
#-----[ FIND ]------------------------------------------
#

   'U_INDEX' => append_sid('index.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------
#

   'U_INDEX_TOP' => append_sid('index.'.$phpEx. '#'),

#
#-----[ OPEN ]------------------------------------------
#

templates/subSilver/index_body.tpl

#
#-----[ FIND ]------------------------------------------
#

<td class="catHead" colspan="2" height="28"><span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span></td>

#
#-----[ IN-LINE FIND ]----------------------------------
#

{L_WHO_IS_ONLINE}

#
#-----[ IN-LINE AFTER, ADD ]----------------------------
#

 - <a href="{U_INDEX_TOP}">{L_BACK_TO_TOP}

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM


Alos currently we have graphic buttons on the idex page (search, log in etc) is it possible to have just a text lin instead or do I have to stick with graphics?


Last edited by Karen on 03/12/2007 5:05 PM; edited 1 time in total
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: [Solved] 'Back to Top' Mod and a button Q
PostPosted: 03/12/2007 4:31 PM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 12:19 AM
greatbrE.gif
I added another mod which got rid of all underlines so that's OK now Smile
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: 'Back to Top' Mod and a button Q
PostPosted: 03/12/2007 11:16 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:19 PM
Location: St Pete, FL
peace.gif
That was easy enough...

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] 'Back to Top' Mod and a button Q
PostPosted: 03/13/2007 8:29 AM Reply with quote
Citation
Karen
Citation
Posts 1253
Word Cnt. 68,166
BDay Nov 9
Sign Scorpio
Sex Sex:Female
Joined: Jan 06, 2006
Local time: 12:19 AM
greatbrE.gif
Dancing

What about the search/log in/profile buttons? Is it possible to just have them as a text link instead of a graphic?
Back to Top
View user's profile Find all posts by Karen Send private message   Visit poster's website Phoogle Map
Re: 'Back to Top' Mod and a button Q
PostPosted: 03/13/2007 5:09 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 8:19 PM
Location: St Pete, FL
peace.gif
Yes, you can change it to use a text link instead of the graphics.  Just remove the code and add the desired text before the </a> tag...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0775s (PHP: 67% - SQL: 33%) - SQL queries: 42 - GZIP disabled - Debug on