Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[MOD] Block Management v.1.0.R1
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2007-10-01 12:54:19
"Phoenix_UK, post: 33083":
If I go to blocks management and click edit I get "Error, Please select an option"

in http://xxxxxxx.com/admincp.php?action=blocks&do=view || http://xxxxxxxx.com/blocks-edit.php ??

i really don
Unknown User
2007-10-01 12:58:17
k

just looked and it was the polls block that broke it :/

It's only for "Enable Blocks" works fine for "Disabled Blocks" :S
Unknown User
2007-10-01 13:03:50
Yes, FLASH was talking something about this
Unknown User
2007-10-01 13:25:05
"elegor, post: 33089":
Yes, FLASH was talking something about this
2007-10-01 14:27:25
its a form problem i guess
Unknown User
2007-10-01 18:49:30
[size=12px]Ok, i found the bug.[/size]

In polls_block.php

find:

		print("<p align=center><input type=submit value='Vote!' class=btn></p>");





and replace by:



		print("<p align=center><input type=submit value='Vote!' class=btn></p></form>");





to avoid header errors ... in index.php

find:



		mysql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or die(mysql_error());

if (mysql_affected_rows() != 1)

show_error_msg("Error", "An error occured. Your vote has not been counted.",1);

header("Location: ".$site_config["SITEURL"]."/");





and replace with:



		mysql_query("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or die(mysql_error());

if (mysql_affected_rows() != 1)

show_error_msg("Error", "An error occured. Your vote has not been counted.",1);

show_error_msg("Success", "Thank you, Your vote has been counted.",1);
Unknown User
2007-10-01 19:27:32
ok, now we have preview polls block problem (thanks gia for notice):

in polls_block.php

function srt($a,$b){

if ($a[0] > $b[0]) return -1;

if ($a[0] < $b[0]) return 1;

return 0;

}





replace with:



if(!$preview){

function srt($a,$b){

if ($a[0] > $b[0]) return -1;

if ($a[0] < $b[0]) return 1;

return 0;

  }

}
Unknown User
2007-10-01 19:40:57
that doesn't cause any problems
Unknown User
2007-10-01 19:44:27
yes if you have installed this mod.

function srt() is colled 2 times... and error is:

Fatal error: Cannot redeclare srt() (previously declared in /home/xxxxxxxxx/public_html/tt/blocks/polls_block.php:5) in /home/xxxxxxxxx/public_html/tt/blocks/polls_block.php on line 5
Unknown User
2007-10-01 19:49:56
lol forgot about that...
Unknown User
2007-10-01 19:50:39
:P
Unknown User
2007-10-01 19:51:32
@FLASH: Can we have this in the next release?
Unknown User
2007-10-01 19:56:08
"Phoenix_UK, post: 33129":
@FLASH: Can we have this in the next release?
Thank you F ... and FLASH told me that probably will be included
Unknown User
2007-10-01 20:38:05
[No message]
Unknown User
2007-10-01 21:08:51
I know what you saying.

I forget that not everybody have 1440 x 900 resolution  :P .

But please edit your post and put code into {code}{/code} tags, because copy-paste from {codebox}{/codebox} looks really messy.

EDIT: hmm ... seems that is problem with IE7
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728