Phpraider easy to fix

Public general forum, visible to non-members. Here be discussions potentially concerning non-guildies
Post Reply
Valeo
Guest

Phpraider easy to fix

Post by Valeo » 28 Jan 2008, 12:37

I noticed you had the same bug we encountered on phpraider page. You dont need to wait for the next version, as the bug is very easy and fast to fix.

1. Find frontpage.php at phpraider\components\com_frontpage and open it for editing.

2. Find line:

Code: Select all

$upper = mktime('0','0','0',$_GET['monthID'], '31', $_GET['yearID']);
3. Replace it with:

Code: Select all

$upper = mktime('23','59','59',$_GET['monthID'], '31', $_GET['yearID']);
4. Upload new file and voilá, the problematic raid shows up on frontpage!

User avatar
Pyx
(Anasazi)
Ancient
Posts: 4422
Character name: Anasazi
Location: Netherlands
WoW character race: Draenei
WoW character class: Shaman

Post by Pyx » 28 Jan 2008, 13:45

Thanks a lot Valeo!

Would you perhaps also know a codefix for our forum, which for some members decides to not log them in at first, while it does wipe the 'new posts since last login' for them when the second login succeeds?
ImageImage

Zarhan
Ancient
Posts: 4056
Character name: Zarhan

Post by Zarhan » 28 Jan 2008, 13:49

Sheesh Valeo, now you told everybody how lazy admin I am :) I know that fix, I just thought it wasn't worth fixing since next occurence is not until March 31st (February has only 29 days :)).

Fixed now.

Zarhan
Ancient
Posts: 4056
Character name: Zarhan

Post by Zarhan » 28 Jan 2008, 14:04

BTW, we are running latest 2.x-series PhpBB, 2.0.22 (released in Dec 2006), so that's probably pretty stable. Upgrading to 3.x-would probably break great many things.

Alikh
(Aliqh)
Ancient
Posts: 10887
Character name: Aliqh
Location: Netherlands
WoW character race: Night Elf
WoW character class: Demon Hunter
Battle.net character avatar: Aliqh
Contact:

Post by Alikh » 28 Jan 2008, 14:21

Zarhan wrote:BTW, we are running latest 2.x-series PhpBB, 2.0.22 (released in Dec 2006), so that's probably pretty stable. Upgrading to 3.x-would probably break great many things.
And hopefully fix a great many things. :P

There must be some way to transfer the old system to the new one.
The bug Pyx mentioned is actually severe enough to be worth fixing by going to 3.x.

Zarhan
Ancient
Posts: 4056
Character name: Zarhan

Post by Zarhan » 28 Jan 2008, 14:31

Khila, seems similar issue to the famous phpraider html editor:

http://www.phpbb.com/community/viewtopi ... ogin+twice

Can someone with admin rights check?

User avatar
Pyx
(Anasazi)
Ancient
Posts: 4422
Character name: Anasazi
Location: Netherlands
WoW character race: Draenei
WoW character class: Shaman

Post by Pyx » 28 Jan 2008, 16:41

This should fix it?
ImageImage

Zarhan
Ancient
Posts: 4056
Character name: Zarhan

Post by Zarhan » 28 Jan 2008, 16:47

Installed now.

Tested with my Work-computers IE 6.0 which has given similar problems, at least there it fixed it.

Elos, others who have same probs - can you confirm it works for you now?

Valeo
Guest

Post by Valeo » 29 Jan 2008, 00:37

Sorry Pyxie, im not really that much of a coder, i just leech other ppls codes to do my bidding. But im glad i could be of help. (Even if it was a mere kick on Zarhans behind ;))

As our site got hacked via phpbb2, we updated the whole thing and went to phpbb3. It really is a nice thing, and supports antispam and many other things natively. Its much safer than phppb2 ever was. Oh, and i think that you can upgrade a previous phpbb2 install to a new phpbb3 with the new install package, but im not really sure about that, as i wiped our whole database clean and started from scratch due to hacking.

If you havent been there lately, you can see what it can do at our site http://www.veneratioaeterna.com.

frozenwiller
Guest

Post by frozenwiller » 29 Jan 2008, 07:47

login seems to work a-ok now, at least the few sessions I tried it with.

User avatar
Pyx
(Anasazi)
Ancient
Posts: 4422
Character name: Anasazi
Location: Netherlands
WoW character race: Draenei
WoW character class: Shaman

Post by Pyx » 29 Jan 2008, 10:27

I had a look and must say it looked more spiffy.

Btw, did you know that Puchiko looks suspiciously like Athene, best paladin in the world? :twisted:
ImageImage

Zarhan
Ancient
Posts: 4056
Character name: Zarhan

Post by Zarhan » 29 Jan 2008, 11:12

Valeo, just in case you want to do a similar "armory link" to ours, you need to edit files in directory

templates/default,

the three files

view_approved_body.tpl
view_queued_body.tpl
view_cancelled_body.tpl

Change line

Code: Select all

<td width="60%" valign="top"><div align="left" style="color:{$class_color}"><strong>{$char_name}<br></strong></div></td>
to

Code: Select all

<td width="60%" valign="top"><div align="left" style="color:{$class_color}"><strong><a href="http://eu.wowarmory.com/character-sheet.xml?r=Defias+Brotherhood&n={$char_name}"><font color="{$class_color}">{$char_name}</font></a><br></strong></div></td>
Note that "Defias brotherhood" is hardcoded in there.

Valeo
Guest

Post by Valeo » 29 Jan 2008, 20:57

SHHH Zarhan, now youre giving ME more work! 8) 8)

Post Reply