Welcome, Guest. Please Login or Register.
May 01, 2025, 06:00:00 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  pages visited = hardcoded « previous next »
Pages: [1] Reply Ignore Print
Author Topic: pages visited = hardcoded  (Read 575 times)
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
pages visited = hardcoded
« on: April 13, 2002, 03:52:36 AM »
Reply with quote

While redoing admin.php i found that in the clicklog, 'pages visited' is hardcoded in.

Search for '<font size="2"><center><B>Pages Visited</B>' and you will find it
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #1 on: April 13, 2002, 04:16:29 AM »
Reply with quote

in english.lng

find
$txt[696] = 'Operating System';
add after
$txt[696a] = 'Pages Visited';
in admin.php

find
<font size="2"><center><B>Pages Visited</B>
replace
<font size="2"><center><B>$txt[696a]</B>
« Last Edit: April 13, 2002, 04:21:14 AM by groundup » Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #2 on: April 13, 2002, 04:24:18 AM »
Reply with quote

just realised a few lines down...

in english.lng (the optimized one found at phpworld.net):

find
$txt[696] = 'Operating System';
add after
$txt[696b] = 'Referring Pages';
in admin.php

find
<font size="2"><center><B>Referring Pages</B>
replace
<font size="2"><center><B>$txt[696b]</B>
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:pages visited = hardcoded
« Reply #3 on: April 13, 2002, 01:20:41 PM »
Reply with quote

Also the quote, quote from and code texts are hardcoded but Joseph already promised to fix this ASAP.
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #4 on: April 13, 2002, 05:27:45 PM »
Reply with quote

where is it?  I will add it to the optimized english.lng file rite away.
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:pages visited = hardcoded
« Reply #5 on: April 13, 2002, 07:31:39 PM »
Reply with quote

Subs.php

626: $parts[$i] = "<font size=1><b>Code:</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td
class=quote><font face=\"Courier new\">".$parts[$i];

731: "'<br><font size=1><b><a href=\"$scripturl?action=display;\\2\">Quote from: \\1 on '.timeformat('\\3').'</a>      
</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=quote>'",

733: "<br><font size=1><b>Quote:</b></font><table border=0 cellspacing=1 cellpadding=2 width=\"100%\"><tr><td class=quote>",
« Last Edit: April 13, 2002, 07:32:28 PM by Hypocrite » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #6 on: April 14, 2002, 11:36:18 PM »
Reply with quote

ok.. fixed them using the optimized subs.php and the optimized version of english.lng (you can find them at www.phpworld.net or the documentation gab board)

OR you can just add

$gup[1] = 'Quote from:';
$gup[2] = 'Quote:';
$gup[3] = 'Code:';

and replace the words in your version of subs.php
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:pages visited = hardcoded
« Reply #7 on: April 15, 2002, 05:07:24 PM »
Reply with quote

Don't know if you can do this but also some images are hard coded and can't be changed with the .lng files. If I remember right all the admin buttons in the bottom of the threads are hardcoded, the new posts/no new posts buttons are hardcoded and also the little new flag beside the new posts.
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #8 on: April 16, 2002, 12:51:32 AM »
Reply with quote

I will get on those right away
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:pages visited = hardcoded
« Reply #9 on: April 16, 2002, 02:28:07 AM »
Reply with quote

after $gup[3] add:
$gup[4] = "<img src=\"$imagesdir/new.gif\" alt=$txt[302]\">";
find
$new = "<img src=\"$imagesdir/new.gif\" alt=$txt[302]\">";
replace
$new = $gup[4];
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  pages visited = hardcoded « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.110 seconds with 21 queries.