Welcome, Guest. Please Login or Register.
November 02, 2024, 05:22:41 PM
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  |  Completed mods  |  [Done 1.5.1-1.5.4] Referer Mod (06/18) « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: [Done 1.5.1-1.5.4] Referer Mod (06/18)  (Read 9361 times)
CrazyC
Jr. Member
**
Posts: 85


My name says enough.

WWW
Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #15 on: June 02, 2003, 03:22:45 PM »
Reply with quote

sce, that would be the difference.  PfaBB doesn't use the same file for the Admin center.   Search for the lines installed to Admin.php and then add them to SAdmin.php for PfaBB.  That should fix your problem.
Logged

CrazyC
sce
Noobie
*
Posts: 9


i like old stuff

WWW
Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #16 on: June 02, 2003, 08:36:20 PM »
Reply with quote

Quote from: CrazyC on June 02, 2003, 03:22:45 PM
sce, that would be the difference.  PfaBB doesn't use the same file for the Admin center.   Search for the lines installed to Admin.php and then add them to SAdmin.php for PfaBB.  That should fix your problem.

..DOH...   :-\

Thanks Crazy ... I'll fixer up tonight !

sce
Logged
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:error
« Reply #17 on: June 03, 2003, 08:31:23 PM »
Reply with quote

Quote from: hedging on April 28, 2003, 07:50:54 PM
From admin center
?action=viewprofile;user=

there is no name in user=


Same here.
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Webby
Beta Tester
YaBB God
*****
Posts: 829


Some mistakes are too funny to make only once.

ICQ - 9814812webby@salesplaza.nl WWW
Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #18 on: June 03, 2003, 08:45:52 PM »
Reply with quote

Changed :

         <td class="windowbg"><a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $row['realName'] . '</a></td>


into :

         <td class="windowbg"><a href="' . $scripturl . '?action=viewprofile;user=' . $row['memberName'] . '">' . $row['realName'] . '</a></td>


And that works.

I hope I did that one right ;)
Logged

Webby of salesplaza.nl
The YaBBSE buttongenerator : Click HERE !
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #19 on: June 10, 2003, 08:16:47 PM »
Reply with quote

Im getting this error when I click on register :(

Quote
2: htmlspecialchars() expects parameter 1 to be string, array given
(/home/fertilit/public_html/segaboard/Sources/Register.php ln 34)

Any ideas?
Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #20 on: June 11, 2003, 09:24:54 PM »
Reply with quote

When I rem out the offending line -

$referer = htmlspecialchars($referer);

it seems to work fine, well almost - is does fill in the referer field in the form as 'array'

Logged

To the world - you are just one person, but to one person you are the world!
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #21 on: June 12, 2003, 09:33:18 PM »
Reply with quote

if you remove that line, people can post html codes through the url :(
what was the url when the problem occurs?
try using this instead:
$referer = (trim($referer) == '' ? '' : htmlspecialchars($referer));
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #22 on: June 12, 2003, 10:34:51 PM »
Reply with quote

Thanks for getting back to me.....

Although I have installed it with boardmod - I went through manually and checked every line - it all seems to be ok - code wise :(

The end of the url looks like this....
index.php?board=;action=register

but even with your new line, I still get this....
2: htmlspecialchars() expects parameter 1 to be string, array given
(/home/fertilit/public_html/segaboard/Sources/Register.php ln 34)


I guess its not compatible with 1.5.3? or maybe the version of PHP I am using....php4.3.1?
Logged

To the world - you are just one person, but to one person you are the world!
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #23 on: June 17, 2003, 07:30:20 AM »
Reply with quote

Hi,

Any update on this?

I would love to get it to work :(



Logged

To the world - you are just one person, but to one person you are the world!
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #24 on: June 17, 2003, 08:20:30 PM »
Reply with quote

looks like the $referer variable is used somewhere else
you can change in Register.php:
   global $referer;
   
   $referer = htmlspecialchars($referer);
into:   global $regReferer;
   
   $regReferer = htmlspecialchars($regReferer);

and below that, change                           <input type="text" name="referer" size="20" maxlength="18" value="' . $referer . '" />into:                           <input type="text" name="referer" size="20" maxlength="18" value="' . $regReferer . '" />
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #25 on: June 17, 2003, 09:03:53 PM »
Reply with quote

That worked great  ;D

Thanks!!
Logged

To the world - you are just one person, but to one person you are the world!
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1-1.5.4] Referer Mod (06/18)
« Reply #26 on: June 18, 2003, 10:25:27 PM »
Reply with quote

Released v1.1, changes:
- changed $referer to $regReferer due to conflicts with Subs.php
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1 & 1.5.2] Referer Mod
« Reply #27 on: June 19, 2003, 10:22:31 PM »
Reply with quote

Quote from: Webby on June 03, 2003, 08:45:52 PM
Changed :

         <td class="windowbg"><a href="' . $scripturl . '?action=viewprofile;user=' . $euser . '">' . $row['realName'] . '</a></td>


into :

         <td class="windowbg"><a href="' . $scripturl . '?action=viewprofile;user=' . $row['memberName'] . '">' . $row['realName'] . '</a></td>


And that works.

I hope I did that one right ;)

I had to do this, although not sure if it will affect member names with spaces in?

Logged

To the world - you are just one person, but to one person you are the world!
Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:[Done 1.5.1-1.5.4] Referer Mod (06/18)
« Reply #28 on: June 20, 2003, 01:25:52 AM »
Reply with quote

do this instead:<td class="windowbg"><a href="' . $scripturl . '?action=viewprofile;user=' . urlencode($row['memberName']) . '">' . $row['realName'] . '</a></td>
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Done 1.5.1-1.5.4] Referer Mod (06/18)
« Reply #29 on: June 20, 2003, 07:17:15 AM »
Reply with quote

 ;D

Thanks
Logged

To the world - you are just one person, but to one person you are the world!
Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.5.1-1.5.4] Referer Mod (06/18) « 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.146 seconds with 20 queries.