 | [Solved] 'Back to Top' Mod and a button Q |  |
Posted: 03/12/2007 4:04 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:19 AM
|

|
|
|
|
 |
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 |
|
|
 | Re: [Solved] 'Back to Top' Mod and a button Q |  |
Posted: 03/12/2007 4:31 PM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:19 AM
|

|
|
|
|
 |
I added another mod which got rid of all underlines so that's OK now  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: 'Back to Top' Mod and a button Q |  |
Posted: 03/12/2007 11:16 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:19 PM
Location: St Pete, FL
|

|
|
|
|
 |
That was easy enough...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] 'Back to Top' Mod and a button Q |  |
Posted: 03/13/2007 8:29 AM |
|
|
|
|
|
| Citation |
| Posts |
1253 |
| Word Cnt. |
68,166 |
| BDay |
Nov 9 |
| Sign |
Scorpio |
| Sex |
 |
|
|
|
Joined: Jan 06, 2006
Local time: 12:19 AM
|

|
|
|
|
 |
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 |
|
|
 | Re: 'Back to Top' Mod and a button Q |  |
Posted: 03/13/2007 5:09 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 8:19 PM
Location: St Pete, FL
|

|
|
|
|
 |
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...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|