PDA

View Full Version : Toplist


Pages : 1 2 [3] 4 5 6 7

ShannonRawls
02-09-2006, 01:31 AM
Toplist still not working for me.

After a user adds a site (without an image), the confirmation page still has the broken image in the middle.
I did update the "image.png" file with my server path to my forum ('/home/myuser/public_html'), but it still does not work. My forum is in the root directory.
Still...the image is broken

Also...if a user tries to add a site and upload an image with it, theres an error saying it is not a correct file, even though it is.

Will there be an update to this wonderful hack soon?

- ShannonRawls.com

derekivey
02-09-2006, 09:54 AM
Can you paste me the contents of your image.png file please? If you don't want to post it here, please send it to me in a PM.

Also what file type is it saying the file is when they try uploading it?

Thanks,
Derek

ShannonRawls
02-09-2006, 01:56 PM
its a regular ole jpg that wont upload. I have sent you the image.png file in PM

thank you kindly for your supoort and diligence.

- ShannonRawls.com

derekivey
02-09-2006, 06:46 PM
its a regular ole jpg that wont upload. I have sent you the image.png file in PM

thank you kindly for your supoort and diligence.

- ShannonRawls.com

Replied to your PM. Can you please tell me what it says the file type is on the error message? It should say something like
The format of the file you uploaded is

Please paste me what it says.

Thanks,
Derek

Gallio
02-12-2006, 08:30 AM
I seem to have a problem, I'm not sure if i'm uploading wrong but when I click the Add Site it takes me here http://www.Example.com//add_site.php It should look like this
http://www.Example.com/forum/add_site.php Is there a way to fix this? Can anyone help?

derekivey
02-12-2006, 01:09 PM
Make sure you set your forums url right (vBulletin Options -> vBulletin Options -> Site Name / URL / Contact Details).

Derek

BigSoccer Tech.
02-13-2006, 06:08 PM
Make sure you set your forums url right (vBulletin Options -> vBulletin Options -> Site Name / URL / Contact Details).

Derek

the edit feature in admincp doesn't seem to work. i change cats but it doesn't record the change.

derekivey
02-13-2006, 06:38 PM
I will take a look at this. Thank You for reporting it.

Derek

derekivey
02-14-2006, 01:22 AM
Yup, that is indeed a bug. It looks like that feature got broken. I will release a fix shortly.

Thanks again for reporting it.

Derek

derekivey
02-14-2006, 01:28 AM
Ok heres the fix:

Open admincp/toplist_admin.php.

Find:

'cid' => TYPE_UINT,

Replace with:

'category' => TYPE_UINT,


That should fix it, let me know if you still have this problem.

Thanks,
Derek

mat64
02-14-2006, 02:02 PM
I'm getting this on install:

Database error in vBulletin 3.5.3: Invalid SQL: ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

derekivey
02-14-2006, 06:39 PM
Did you modify the product file at all? It should install fine.

Derek

mat64
02-14-2006, 08:13 PM
No I have even downloaded the files again and replaced and it still dosnt work.

Invalid SQL: ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'

derekivey
02-14-2006, 08:39 PM
Ok, I'll take a look at it and see if I can find out whats wrong.

Derek

ConKien
02-15-2006, 09:50 PM
I think when a user modify, it should also show the code to paste on their site for incoming hits. Or have it available somewhere as [Get Code] or something. Right now, there's no link to get the code if you not get it right after submission?

Beside that, it's a wonderful script. Work flawless on the first install!

Thanks Derekivey!

loonytune15
02-16-2006, 12:49 AM
ok I am having probs with the buttons again.

A member has added in his site and the button shows up in the admin cp and the toplist, but not on the forumhome scrolling list of sites, it only shows up as a red x.

any ideas?

derekivey
02-16-2006, 02:47 AM
I think when a user modify, it should also show the code to paste on their site for incoming hits. Or have it available somewhere as [Get Code] or something. Right now, there's no link to get the code if you not get it right after submission?

Beside that, it's a wonderful script. Work flawless on the first install!

Thanks Derekivey!

It should show it also when they edit their site. I like you idea of adding a link they can click to also get the code. I'll see about adding this to the next version.

ok I am having probs with the buttons again.

A member has added in his site and the button shows up in the admin cp and the toplist, but not on the forumhome scrolling list of sites, it only shows up as a red x.

any ideas?
I'll take a look at it tomorrow, I'm going to bed now lol.

Derek

Delazar
02-16-2006, 06:21 PM
Hello,

is it possible to type more than 255 signs, if yes, where can I set it up, if not, can you include this feature in your next update?

thanks

derekivey
02-16-2006, 07:35 PM
255 Characters of what? If you want to accept more, you will need to edit the appropriate database field and change it's type from VARCHAR to something else such as text or something.

Derek

Delazar
02-17-2006, 10:20 AM
I’m talking about the text “Site Name & Description”, where only 255 characters are allowed.
Can I change this in the ACP? If not, could you add this feature?
If you can not add it, where can I change it in the database?

derekivey
02-18-2006, 03:15 AM
If you have PHPMyAdmin, you can do it there.

Select your database, then find the table 'toplist_sites', then find the fields 'name' and 'description', you would need to change their type to text or something and leave the length field blank.

biagrin
02-18-2006, 08:49 AM
how do i add more file extensions for it to accept such as .bmp etc

Frank Butcher
02-18-2006, 10:08 AM
Stupid question but when it says upload the UPLOAD folder in the install instructions does that mean upload it in its entirety in one block and call the folder Upload or upload individual files to the already existing VBB directories ??

Frank Butcher
02-18-2006, 10:41 AM
Whats happened here ? anyone ?

Frank Butcher
02-18-2006, 10:54 AM
Ok ignore that part lol I have it sorted now but MAJOR stress time now

Every time I try and add a site it just comes up with



http://grandprixforum.com/forums/add_site.php
"This page cannot be displayed"

Anyone who has this program PLEASE tell me what I messed up

Delazar
02-18-2006, 10:57 AM
If you have PHPMyAdmin, you can do it there.

Select your database, then find the table 'toplist_sites', then find the fields 'name' and 'description', you would need to change their type to text or something and leave the length field blank.


Thanks derekivey

Frank Butcher
02-18-2006, 11:05 AM
Uninstall time I guess :( it was a great idea but simply didn't work for me

Even if I manually try and add a site through another link it will not take me to the site

I guess my VBB is corrupted :(

Frank Butcher
02-18-2006, 11:35 AM
This is the most stressful bloody day of my life !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


What does this mean ?


Database error in vBulletin 3.5.3:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Saturday, February 18th 2006 @ 02:34:09 PM
Script : http://www.
Referrer :
IP Address : 80.3.32.7
Username : Administrator
Classname : vb_database

Frank Butcher
02-18-2006, 11:39 AM
Does everyone hate me or something ????

Why is no one offering me any help :(

Jeez I am in such a state right now I would bloody pay for help !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Frank Butcher
02-18-2006, 12:21 PM
I really want to get this program working, someone out there somewhere must know what is causing the errors and what I can do about them, I have had 11 attempts now at doing this, one of you people must know, please save me from despair and tell me why it is not installing properly and what is causing those database errors

KevinL
02-18-2006, 12:46 PM
Umm like a box at the bottom of the page in which the admin can add through the admincp any images that the other sites can use for us.

eg this thread has all my buttons in it.
http://www.monster-designs.com/forums/showthread.php?t=1048

So i'd like it to be shown in the toplist area...

On another note has the same error about the rankings been fixed in the toplist random site on the vbacmps been fixed?
Has this been added yet?

Ive read through the thread and didnt see any more about it.

Thanks

Frank Butcher
02-18-2006, 02:35 PM
Anyone ?

Am still majorly struggling

derekivey
02-18-2006, 02:44 PM
Hello Frank,

That error just means that it was trying to add a field to the database, and it already existed, you can ignore that error. If you want me to install this hack for you, PM me admin and ftp info to your site and I will be more than happy to install it for you.

Sorry I didn't respond earlier, I was still sleeping.

Derek

derekivey
02-18-2006, 02:47 PM
Has this been added yet?

Ive read through the thread and didnt see any more about it.

Thanks

Yes, I have added it, it shows when users add and edit sites.

Derek

Frank Butcher
02-18-2006, 03:12 PM
Hello Frank,

That error just means that it was trying to add a field to the database, and it already existed, you can ignore that error. If you want me to install this hack for you, PM me admin and ftp info to your site and I will be more than happy to install it for you.

Sorry I didn't respond earlier, I was still sleeping.

Derek

Hi Derek, thanks, PM on its way :)

derekivey
02-18-2006, 04:33 PM
Hi Frank,

I have installed it for you. Let me know if you have any problems with it.

Thanks,
Derek

pbw
02-19-2006, 03:10 PM
I recieved the same mysql errors as posted above. Even when i dropped the tables and fields the hack installed.

Now i recieve a division by zero error when attempting to view the toplist. I searched this thread and see similar was mentioned some time ago, https://vborg.vbsupport.ru/showthread.php?t=98646&page=28&pp=15&highlight=division+by+zero but i didnt find any duplicate entry in the xml.


Warning: Division by zero in /toplist.php on line 190
Warning: Division by zero in /includes/functions.php on line 1827

Database error in vBulletin 3.5.1:

Invalid SQL:
SELECT * FROM toplist_sites WHERE status='active' ORDER BY `in` DESC LIMIT 0,;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Error Number : 1064



-- pbw

derekivey
02-19-2006, 09:05 PM
I recieved the same mysql errors as posted above. Even when i dropped the tables and fields the hack installed.

Now i recieve a division by zero error when attempting to view the toplist. I searched this thread and see similar was mentioned some time ago, https://vborg.vbsupport.ru/showthread.php?t=98646&page=28&pp=15&highlight=division+by+zero but i didnt find any duplicate entry in the xml.




-- pbw

Doesn't look like your settings got inserted. Can you PM me Admin info to your forum so I can take a look?

Thanks,
Derek

pbw
02-20-2006, 03:17 AM
Sure, done.

derekivey
02-21-2006, 01:58 AM
Did you send the info? I didn't get any PMs from you.

Derek

pbw
02-21-2006, 09:55 AM
i sent a pm, and just now an email.. if for some reason you didnt recieve it let me know

thanks,

-- pbw

derekivey
02-21-2006, 10:02 AM
Hey,

I got the email. I'll take a look at your site when I get home from school.

Thanks,
Derek

quanvo81
02-21-2006, 12:03 PM
Hi there, can someone help me?
If a members add a site without uploading an images, then the button row show a red cross X, is it supposed to show "None" ?
How do I fix that problem?

derekivey
02-22-2006, 03:17 AM
Hi,

It should say None. Can you please PM me a URL to your forum and admin details so that I can take a look?

Thanks,
Derek

quanvo81
02-22-2006, 12:16 PM
Hi,

It should say None. Can you please PM me a URL to your forum and admin details so that I can take a look?

Thanks,
Derek
I just did, please check your PM, thanks alot.

derekivey
02-22-2006, 07:32 PM
Replied to your PM.

Derek

DementedMindz
02-26-2006, 05:00 AM
having a few issues on getting the dynamic image to show up its showing up as this link for the image /images/toplist/buttons/dynamic/image.png?id=1 shouldnt it be /images/toplist/buttons/dynamic/image.png this way it shows the image? and if so where is this so i can fix it?

derekivey
02-26-2006, 02:03 PM
No that is correct, it adds the id of the site to the url because it shows stats for that site such as their in and out hits, as well as their rank and rating.

Derek

DementedMindz
02-28-2006, 11:27 PM
hmmm i can get the image to show at all how do i do that i have installed it all as it was told but it dont show any thoughts?

derekivey
03-01-2006, 01:04 AM
Did you read this post? https://vborg.vbsupport.ru/showpost.php?p=885450&postcount=450

DementedMindz
03-02-2006, 04:12 AM
no i didnt cause i havent been on here in a bit sorry, but maybe you should put then on install instructions too

derekivey
03-02-2006, 11:43 AM
No Problem. I will put it on the install instructions also when I get home from school.

Derek

Sean James
03-02-2006, 01:07 PM
i have just updated this script to the latest version, but when i edit the usergroup pemissions i get this error:


Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Registered Users',
`description` = '',
`usertitle` = '',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '0',
`passwordhistory` = '0',
`profileviewpermissions` = '15',
`forumpermissions` = '1044991',
`attachlimit` = '0',
`pmquota` = '50',
`pmpermissions` = '3',
`pmsendmax` = '5',
`calendarpermissions` = '63',
`wolpermissions` = '1',
`adminpermissions` = '0',
`genericpermissions` = '203953795',
`genericoptions` = '30',
`profilepicmaxwidth` = '200',
`profilepicmaxheight` = '200',
`profilepicmaxsize` = '200000',
`avatarmaxwidth` = '200',
`avatarmaxheight` = '200',
`avatarmaxsize` = '150000',
`vbspacecomments` = '0',
`toplistpermissions` = '3'
WHERE usergroupid=2;

MySQL Error : Unknown column 'vbspacecomments' in 'field list'
Error Number : 1054
Date : Thursday, March 2nd 2006 @ 08:45:34 AM
Script : http://www.bluepearl-design.com/forums/admincp/usergroup.php
Referrer : http://www.bluepearl-design.com/forums/admincp/usergroup.php?do=edit&usergroupid=2
IP Address : xxx.xx.201.159
Username : Sean
Classname : vb_database


Thanks

yinyang
03-02-2006, 04:13 PM
is there anyway to use this along with vbadvanced links directory? that'd pretty much make this thing complete!

DementedMindz
03-02-2006, 05:44 PM
Did you read this post? https://vborg.vbsupport.ru/showpost.php?p=885450&postcount=450


i did as followed and when the images are shown after they add there site i still cant get it to show that image... any word what might cause this?

derekivey
03-02-2006, 06:48 PM
i have just updated this script to the latest version, but when i edit the usergroup pemissions i get this error:



Thanks

Not sure why that is happening. Looks like the vbspace hack did something to your table or something.

is there anyway to use this along with vbadvanced links directory? that'd pretty much make this thing complete!
Not sure how that works, so not currently. Maybe in the future I can implement something to work with it. I don't have money to buy a license of it so I can't try it out and make something. Sorry.

i did as followed and when the images are shown after they add there site i still cant get it to show that image... any word what might cause this?
PM me the url to your forum, admin details, and FTP details so I can take a look at the image file.

Derek

Ramsesx
03-06-2006, 09:12 AM
Upgraded from 1.02 to 1.06. uploaded files and imported product (overwrite on).
Get a lot of database errors had to do with buttons, was to quick for saving the errors exactly.
Now if I want to access the toplist I get the same error as on this post#524 (https://vborg.vbsupport.ru/showpost.php?p=903565&postcount=524) and in the acp the buttons are red crossed.
I think need some help with it, thanks.

derekivey
03-06-2006, 10:07 AM
For the error you say you get in Port 524, you have to go to the usergroup manager in vB's AdminCP and set the different toplist permissions for each of your groups. PM me admin info to your board, and I'll take a look at the 2nd problem you have.

Derek

Ramsesx
03-06-2006, 12:06 PM
Thanks Derek. So far it is now ok, I reuploaded the images. But now if I want to add a new site get the error:
Sorry, your image could not be uploaded because the format of it is not allowed. Allowed formats are GIF, JPEG, and PNG
etc.
If adding the site through the acp it's working fine.

derekivey
03-06-2006, 06:59 PM
What format image were you trying to add to the site?

Ramsesx
03-06-2006, 09:27 PM
It was gif and jpg format. But as mentioned before it was possible to add it from the acp.

derekivey
03-06-2006, 09:46 PM
Hmm, can you PM me the url to your forum so I can try it? It should let you upload gif and jpg images. Maybe even try reuploading the .php files.

Derek

derfelix
03-10-2006, 03:56 AM
Very nice hack...
suggestions for future versions (maybe suggested before didn't real ALL of the 38 pages)

* an automatic check if the site has included your code (removal or suspension if your code has been removed)

* point system for users that have lots of ins (if a user comes from their site.. an registers .. addition to referrer?)

* usage of real banners.. (most sites have) instead of buttons..(or choice) with automatic resizing if banner is not the exact requested size...

these are just suggestions
it is great as is

Felix

derfelix
03-10-2006, 05:16 PM
been testing it .. and it is great...

found one little bug.. (or feature? :surprised: )

Example:
A user uploads a pic.. and the sitename, description etc...
everything is fine..

now the user sees he has a typo in the text.. so he edits it.
when he saves it.. everything is fine..
BUT: the picture is gone.. as a matter of fact the file is still there..
but somehow in the db it is gone.. the user sees a broken image.

I think its a little bug in edit_site.php

because when you edit your sites it stores the $key variable into the database. BUT if you have not modified the image.. the variable $key is not defined anywhere (actually it takes the $key variable out of the included global.php)

My workaround is the following (maybe there is a more elegant way to do it)
First make a backup copy of edit_site.php


in edit_site.php
find:
if (!empty($vbulletin->GPC['image']['name']))
above add:
$query_key = "";

a little lower find:
$height = $size[1];
below add:
$query_key = ", imagecode='" . $key . "' WHERE id='" . $vbulletin->GPC['id'] . "'";
and finally find:

imagesize='".$image_size."',
imagecode='".$key."' WHERE id='".$vbulletin->GPC['id']."'";
and replace with:

imagesize='" . $image_size . "'" . $query_key . "";

this is just a first guess..
maybe its not very elegant.. but it works for me.

which meens that when i edit a site without changing the image.. it does not delete the image.

Felix

-----------
As for the second little problem.. the dynamic image not showing.. its a problem with my localhost apache (test environment) that does not accept .htacess (but some providers dont either).

so what i did was:
rename the file image.png to image.php
then in the template Toplist_HTML_Code i replaced all 4 instances of image.png with image.php

for me its working now!!

Josh1
03-10-2006, 05:25 PM
Which XML do i use??

derekivey
03-10-2006, 06:57 PM
been testing it .. and it is great...

found one little bug.. (or feature? :surprised: )

Example:
A user uploads a pic.. and the sitename, description etc...
everything is fine..

now the user sees he has a typo in the text.. so he edits it.
when he saves it.. everything is fine..
BUT: the picture is gone.. as a matter of fact the file is still there..
but somehow in the db it is gone.. the user sees a broken image.

I think its a little bug in edit_site.php

because when you edit your sites it stores the $key variable into the database. BUT if you have not modified the image.. the variable $key is not defined anywhere (actually it takes the $key variable out of the included global.php)

My workaround is the following (maybe there is a more elegant way to do it)
First make a backup copy of edit_site.php


in edit_site.php
find:
if (!empty($vbulletin->GPC['image']['name']))
above add:
$query_key = "";

a little lower find:
$height = $size[1];
below add:
$query_key = ", imagecode='" . $key . "' WHERE id='" . $vbulletin->GPC['id'] . "'";
and finally find:

imagesize='".$image_size."',
imagecode='".$key."' WHERE id='".$vbulletin->GPC['id']."'";
and replace with:

imagesize='" . $image_size . "'" . $query_key . "";

this is just a first guess..
maybe its not very elegant.. but it works for me.

which meens that when i edit a site without changing the image.. it does not delete the image.

Felix

-----------
As for the second little problem.. the dynamic image not showing.. its a problem with my localhost apache (test environment) that does not accept .htacess (but some providers dont either).

so what i did was:
rename the file image.png to image.php
then in the template Toplist_HTML_Code i replaced all 4 instances of image.png with image.php

for me its working now!!

It must be a bug, I could have swore I had it not change anything if they left the image field blank. Hmm. I will take a look and fix it.

Which XML do i use??
product-toplist.xml

derfelix
03-11-2006, 08:07 AM
actually in the db it was not gone (i wrote that before i took a closer look)
the value of the $key variable was replaced by the one created in global.php

thx for looking in to it

Felix

Josh1
03-11-2006, 12:50 PM
Ok, everything works fine, cept when I try to access the page:
you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

derekivey
03-11-2006, 01:31 PM
You have to set the usergroup permissions for each user in the Usergroup manager.

derfelix
03-11-2006, 01:56 PM
AH and there is one (maybe the most important) thing I am missing..

Usually in a ranking list you can set after how many ins the banner appears!

I run a standalone toplist where it is set to 5, so only after 5 ins the banner of the user is up..

(because that is the only way you can get people to post a link towards you)
i guess it must be somewhere in the settings.. and I missed it.
If not.. this is a BIIIG request!
Felix

derekivey
03-11-2006, 02:37 PM
Thanks for the suggestion. I like the idea and am adding it to my todo list.

Thanks,
Derek

derekivey
03-12-2006, 11:35 PM
been testing it .. and it is great...

found one little bug.. (or feature? :surprised: )

Example:
A user uploads a pic.. and the sitename, description etc...
everything is fine..

now the user sees he has a typo in the text.. so he edits it.
when he saves it.. everything is fine..
BUT: the picture is gone.. as a matter of fact the file is still there..
but somehow in the db it is gone.. the user sees a broken image.

I think its a little bug in edit_site.php

because when you edit your sites it stores the $key variable into the database. BUT if you have not modified the image.. the variable $key is not defined anywhere (actually it takes the $key variable out of the included global.php)

My workaround is the following (maybe there is a more elegant way to do it)
First make a backup copy of edit_site.php


in edit_site.php
find:
if (!empty($vbulletin->GPC['image']['name']))
above add:
$query_key = "";

a little lower find:
$height = $size[1];
below add:
$query_key = ", imagecode='" . $key . "' WHERE id='" . $vbulletin->GPC['id'] . "'";
and finally find:

imagesize='".$image_size."',
imagecode='".$key."' WHERE id='".$vbulletin->GPC['id']."'";
and replace with:

imagesize='" . $image_size . "'" . $query_key . "";

this is just a first guess..
maybe its not very elegant.. but it works for me.

which meens that when i edit a site without changing the image.. it does not delete the image.

Felix

Hey,

You are right, that is a bug. I will release a fix shortly.

Derek

derekivey
03-13-2006, 12:04 AM
Ok here is the fix. Please download this attached file, upload, and select overwrite if your FTP program asks you.

Thanks,
Derek

derfelix
03-13-2006, 03:08 AM
Thx for the quick fix..!!!

will test ist this evening..
just looked at the code.. much better than mine!!!

Felix

derekivey
03-13-2006, 06:42 PM
No Problem :)

derfelix
03-14-2006, 06:05 AM
works like a charm

Hoffi
03-14-2006, 07:28 AM
After update my Images are also not shown up and I have the same Problem as Ramsesx. What was the solutions?

Edit: During update I get the following Error for every Entry:


Warnung: copy(): URL file-access is disabled in the server configuration in /admincp/plugin.php(1239) : eval()'d code (Zeile 13)

Warnung: copy(http://www.dunklesvest.de/avatar/bannervest.gif): failed to open stream: no suitable wrapper could be found in /admincp/plugin.php(1239) : eval()'d code (Zeile 13)

derfelix
03-15-2006, 07:43 AM
Found another little bug... no its not.. its rather an annoyance..

AND it will NOT AFFECT (I think) all systems (only the phpmyadmin users)

I stumbled into it when backing up my database with phpmyadmin...
when i wanted to get the backup.sql file back into the database.. it gave me an error...

Why?

because one field is named "in" and phpmyadmin thinks it is a sql statement.

so what i did to upload the backup.sql file.. I edited the field name to "ins" and everything was ok..

then in phpmyadmin (once the file was loaded) I renamed the field back to "in" and everything was ok..

What would be nice in a future version would be to have that field called: "ins" once and for all.. then there would be no more problems..

Felix

derekivey
03-15-2006, 07:45 PM
After update my Images are also not shown up and I have the same Problem as Ramsesx. What was the solutions?

Edit: During update I get the following Error for every Entry:


Warnung: copy(): URL file-access is disabled in the server configuration in /admincp/plugin.php(1239) : eval()'d code (Zeile 13)

Warnung: copy(http://www.dunklesvest.de/avatar/bannervest.gif): failed to open stream: no suitable wrapper could be found in /admincp/plugin.php(1239) : eval()'d code (Zeile 13)


Hi,

Try the attached product file instead. I took out the code that grabs any images that people have already added before you upgraded, and uploads them to your server. Since your server configuration doesn't allow file uploads, you will have to edit the hack to not allow image uploads, or get your php configuration changed to allow it.

Derek

derekivey
03-15-2006, 07:46 PM
Found another little bug... no its not.. its rather an annoyance..

AND it will NOT AFFECT (I think) all systems (only the phpmyadmin users)

I stumbled into it when backing up my database with phpmyadmin...
when i wanted to get the backup.sql file back into the database.. it gave me an error...

Why?

because one field is named "in" and phpmyadmin thinks it is a sql statement.

so what i did to upload the backup.sql file.. I edited the field name to "ins" and everything was ok..

then in phpmyadmin (once the file was loaded) I renamed the field back to "in" and everything was ok..


What would be nice in a future version would be to have that field called: "ins" once and for all.. then there would be no more problems..

Felix

I will take a look at this. PHPMyAdmin never gave me that problem, but I will change the name of it for the next release.

Derek

Hoffi
03-16-2006, 06:02 AM
That Works. Thanks.

But in my Toplist now all old Entrys did not show up any Banner of the old Entrys. :(

derekivey
03-16-2006, 09:45 AM
Yeah the new version switched from linking the the image urls, instead it uploads them to your server. I will try and release an update to support the old method but right now it doesn't.

Hoffi
03-16-2006, 12:25 PM
Umpf. Too bad... about 150 Entries now have no Banner. Shit...

derekivey
03-16-2006, 03:38 PM
Check the database, I think I left the old field in there, you could probably just edit the templates so it uses the url to the images instead.

baerwurz
03-20-2006, 10:35 PM
I have Prob with 1.06

My Pictures isn´t shown and if I click an see the path ist will be search the pic here:

/images/toplist/buttons/dynamic/image.png?id=1

The Pic on my ftp ist at:

images/toplist/buttons/dynamic/image.png

It is chmod 777, but it will not be shown in the Toplist?

Any Idea, what to do?

Thanks, André

derekivey
03-20-2006, 11:56 PM
Did you edit that file in notepad according to this post (https://vborg.vbsupport.ru/showpost.php?p=885450&postcount=450)?

DementedMindz
03-21-2006, 01:27 AM
I have Prob with 1.06

My Pictures isn?t shown and if I click an see the path ist will be search the pic here:

/images/toplist/buttons/dynamic/image.png?id=1

The Pic on my ftp ist at:

images/toplist/buttons/dynamic/image.png

It is chmod 777, but it will not be shown in the Toplist?

Any Idea, what to do?

Thanks, Andr?


i had the same problem.... it displayed basiclly a broken image... i just removed that image from the center since i couldnt figure it out... i left it all stock and it didnt show up and i edited the file too so i removed that image

DementedMindz
03-21-2006, 01:36 AM
what image is suppose to show in the center one by the way?

derekivey
03-21-2006, 07:00 PM
It's supposed to show a dynamic image which shows various stats about the site like the number of in and out hits, rating, rank, etc. I'm thinking about adding something to the AdminCP to help everyone edit it more easliy.

Ramsesx
03-22-2006, 10:37 AM
Derek, is there a easy way to disable the rating?
Thanks

derfelix
03-22-2006, 01:10 PM
i had the same problem.... it displayed basiclly a broken image... i just removed that image from the center since i couldnt figure it out... i left it all stock and it didnt show up and i edited the file too so i removed that image

thats because your server probably doesn't accept php scripts with other endings than php (AND the htaccess instruction is not accepted like on mine)

if i remember right.. i just renamed the image.png to image.php and changed the link all 3 times in the template (from image.png to image.php)

Felix

DementedMindz
03-22-2006, 04:23 PM
thats because your server probably doesn't accept php scripts with other endings than php (AND the htaccess instruction is not accepted like on mine)

if i remember right.. i just renamed the image.png to image.php and changed the link all 3 times in the template (from image.png to image.php)

Felix


nah it aint that cause i have a few other hacks installed that basiclly do the same thing as that.... ill try what you said we shall see its worth a try

derekivey
03-22-2006, 06:44 PM
Derek, is there a easy way to disable the rating?
Thanks

You would have to do some template edits to remove it. For example probably the Toplist_1 and Toplist_2 templates, to remove the ratings and the Toplist template to remove the table header for the rating column.

loonytune15
03-26-2006, 12:36 PM
ok I am having probs with the buttons again.

A member has added in his site and the button shows up in the admin cp and the toplist, but not on the forumhome scrolling list of sites, it only shows up as a red x.

any ideas?

Has this problem been fixed? I just had a new member add their site in and its got the red x still..

derekivey
03-26-2006, 01:51 PM
Should have been fixed. Right click the image and paste here what it is linking to.

Thanks,
Derek

DementedMindz
03-26-2006, 01:59 PM
any word on whats going on with the middle png image yet?

derekivey
03-26-2006, 03:19 PM
Can you paste what you have in it so far so I can try taking a look to see whats wrong? Paste it in tags please.

Thanks,
Derek

DementedMindz
03-26-2006, 07:00 PM
<a rel="nofollow" href="http://www.example.com/in.php?id=1" target="_BLANK"><img src="http://www.example.com/images/toplist/buttons/dynamic/image.png?id=1" border="0" alt="example" /></a>

i changed them all from my link but thats what its displaying in the middle image html code.... it dont display the image just a red x for a broken image.....

JonnyQuest
03-27-2006, 02:50 AM
I love this hack. One suggestion I have:

Allow affiliates to link to a version of the boards where they have defined the header and footer. This would encourage people to drive traffic to the boards because it looks just like their site. It would really allow the board to be a nexus of discussion from a wide variety of different sites.

Keep up the great work.

ocyberbum
03-27-2006, 05:40 AM
any word on whats going on with the middle png image yet?

Same here

loonytune15
03-27-2006, 05:44 AM
Should have been fixed. Right click the image and paste here what it is linking to.

Thanks,
Derek

it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.

DementedMindz
03-27-2006, 07:17 PM
ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully

also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???

derekivey
03-27-2006, 11:15 PM
Not sure why it's not working for you guys. Do you have GD installed?

derekivey
03-27-2006, 11:18 PM
it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.
I took a look and it looks like only one site in the Toplist is like that. Perhaps try readding the image?

ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully


also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???

Yes thats correct. Just ignore the unlink error by the way, it just means the image doesn't exist, you can safely ignore it.

DementedMindz
03-27-2006, 11:19 PM
yes i do... as i use it for image verification for new members... not a big deal though i just removed the center table and the info... would like for it to work though lol

derekivey
03-28-2006, 02:16 AM
Ok, can you paste the code you have in the image.png file so I can take a look and try fixing it?

Thanks,
Derek

DementedMindz
03-28-2006, 04:02 AM
ill leave my url out but here is the code


<?php

/*================================================= =====================*\
|| ################################################## ################## ||
|| # Toplist Hack - Version 1.0.6 # ||
|| # For vBulletin 3.5.3 # ||
|| # ---------------------------------------------------------------- # ||
|| # By Derek Ivey (derek@modbb.com) # ||
|| # This hack may not be redistributed without my written permission # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'toplist_dynamic_image');

// ######################### REQUIRE BACK-END ############################
// change the following to the path to your forum, with no ending slash.
chdir('/html');
require_once('global.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

// ############################## MISC STUFF #############################
header("Content-type: image/png");
$image = imagecreatefrompng("images/toplist/buttons/dynamic/background.png");
$color = imagecolorallocate($image, 0, 0, 255);
$font = 3;

// ######################### GRAB INFO FROM DB ###########################
//$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='8'";
$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='".$db->escape_string($_GET['id'])."'";
$sqlr = $db->query_read($sql);
$sr = $db->fetch_array($sqlr);

if ($vbulletin->options['toplist_ranking_method'] == 0)
{
$order = '`in`';
}
else if ($vbulletin->options['toplist_ranking_method'] == 1)
{
$order = 'out';
}
else if ($vbulletin->options['toplist_ranking_method'] == 2)
{
$order = 'rating_average';
}
else
{
$order = '`in`';
}

$rank1 = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites ORDER BY ".$order." DESC";
$rank2 = $db->query_read($rank1);
$i = 1;
while($rank3 = $db->fetch_array($rank2))
{
if ($rank3['id'] == $_GET['id'])
{
$rank = $i;
}
else
{
$i++;
}
}

// ############################# CREATE IMAGE ############################
imagestring($image, $font, 44, 28, $rank, $color);
imagestring($image, $font, 52, 42, $sr['in'], $color);
imagestring($image, $font, 62, 56, $sr['out'], $color);
imagestring($image, $font, 52, 70, $sr['rating_average'], $color);
imagestring($image, 2, 5, 83, $sr['name'], $color);

imagepng($image);
imagedestroy($image);
?>

loonytune15
03-29-2006, 01:09 AM
Originally Posted by loonytune15
it has this as the address:
http://www.monster-designs.com/forums/

their is no image attached for some reason.
but it works in the toplist page and the admin cp.

go to the above address to see.

I took a look and it looks like only one site in the Toplist is like that. Perhaps try readding the image?

Ok in the toplist page planet renders, was the only site with a red X. I added it in a couple of days ago and it was working, i re-added the image again and it is working again for now..


Originally Posted by DementedMindz
ok question when im in admin i went to upload a image from there for my button and got this error

Warning: unlink(/images/toplist/buttons/sites/forumhome_chatusers): No such file or directory in /admincp/toplist_admin.php on line 352
Site Edited Successfully


also in /images/toplist/buttons/sites it dont save there gif or jpeg it saves it as some weird file? this is one of the names it saved it as NpZSB31CmTZBLpSDTLJJ is this correct???


Yes thats correct. Just ignore the unlink error by the way, it just means the image doesn't exist, you can safely ignore it.

This is also the same problem i have been getting. All my original images have been named as the site number that it was added in as. eg the first site i added was given the image number 1 and so forth.

Also the forum home maquee which is where i am having all the problems, shows red x's everywhere, and it also shows inactive sites.

I m going to have to turn this off soon as it really is starting to look bad..

derekivey
03-29-2006, 02:03 AM
@ DementedMindz - is chdir('/html'); correct? If you are on a shared server, it will probably be something like /home/username/public_html/forumdirectory

@ loonytune15 - Go ahead and turn it off for now. I will try to release a fix tomorrow if I can figure out what is wrong.

DementedMindz
03-29-2006, 02:06 AM
yes it is well i removed the full chdir for this post but its the same as it would be for my vbulletin and vbadvanced

loonytune15
03-30-2006, 02:09 PM
OK i'm not sure if this helps, but the forum home images are all still registering as linked images... eg instead of refering to the uploaded images its refering to the images that i used to have a hyperlink to..

derekivey
03-30-2006, 06:42 PM
They shouldn't be. Make sure you reverted your Toplist_Sites_Code template so it has the new code.

Ahsin1
03-30-2006, 08:48 PM
Installed but when i import xml gives me sql database error any idea

derekivey
03-30-2006, 09:07 PM
Whats the error you get?

loonytune15
03-31-2006, 02:08 AM
Well there you have it, thats all that needed to happen :D

Still the only problem i see is that the inactive sites are still being shown on the forum home.
Other than that thanks for the help with that.

Ahsin1
03-31-2006, 06:41 PM
When i import xml that the error:

There seems to have been a problem with the Desi Online database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Friday, March 31st 2006 @ 02:40:13 PM
Script : http://*******************/plugin.php
Referrer : http://*******************/~mohsin/admincp/plugin.php?do=productadd
IP Address : *******************
Username : Admin
Classname : vb_database

Rhoads
03-31-2006, 10:12 PM
Very beautiful extension, something where I looking for. A little question, the Marquee do not show up.
I have the newest version installed today on a clean forum.

Thnx for the hack ;)

derekivey
03-31-2006, 11:11 PM
When i import xml that the error:

There seems to have been a problem with the Desi Online database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.4:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Friday, March 31st 2006 @ 02:40:13 PM
Script : http://*******************/plugin.php
Referrer : http://*******************/~mohsin/admincp/plugin.php?do=productadd
IP Address : *******************
Username : Admin
Classname : vb_database

You can ignore that error, it just means you have that field already. Edit the XML file and find that query and remove it then try reimporting and selecting yes to overwrite.

Derek

derekivey
03-31-2006, 11:16 PM
Very beautiful extension, something where I looking for. A little question, the Marquee do not show up.
I have the newest version installed today on a clean forum.

Thnx for the hack ;)

Sorry forgot to include the temporary template edit. Currently it isn't detecting the correct code from the template, so you need to add a line to your FORUMHOME template:

FIND:
<!-- end logged-in users -->
</if>

ADD UNDER:
<!-- Toplist -->

Derek

Rhoads
04-01-2006, 06:21 AM
Sorry forgot to include the temporary template edit. Currently it isn't detecting the correct code from the template, so you need to add a line to your FORUMHOME template:
Derek

Thnx, it's working now :)

derekivey
04-01-2006, 02:52 PM
No Problem :).

Beller
04-02-2006, 06:06 PM
Nice Job-Installed

b6gm6n
04-02-2006, 11:44 PM
In the attachment are revised forms/templates for the toplist mod

add site and edit site, looks better, rather than forms plonked in the middle of the screen :)

Edited for IE, looks ok in FFX to...

-b6

(thanx for a great mod)

derekivey
04-03-2006, 01:20 AM
Thanks for contributing those edits. I'm sure some people will find them helpful. :)

Beller
04-03-2006, 04:54 PM
You can ignore that error, it just means you have that field already. Edit the XML file and find that query and remove it then try reimporting and selecting yes to overwrite.

Derek


I have this problem after trying to reinstall. I removed the following from the XML

$db->query($sql);]]></installcode>
<uninstallcode />
</code>
<code version="1.0.3">
<installcode><![CDATA[$sql = "ALTER TABLE `".TABLE_PREFIX."toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;";

A am still getting an error

Also in the installation instructions there is:

2. CHMOD 777 images/toplist/buttons/sites.

There is no folder SITES within buttons. Does this folder need to be created?
Thanks in advance

derekivey
04-03-2006, 06:50 PM
Yes create the folder if it isn't there. Also whats the error you are getting?

Beller
04-03-2006, 07:28 PM
I think I got it sorted...I kept deleting the querys from the xml till it installed ok..
Seems to be working fine now..
Thanks

derekivey
04-03-2006, 09:37 PM
Ok, good. Let me know if you have anymore problems.

Thanks,
Derek

Beller
04-03-2006, 09:39 PM
OK thanks!

Beller
04-04-2006, 05:45 PM
I want to put a note/link to login or register to add site!!! Under Random site...
Whats the best way to do this?

DementedMindz
04-04-2006, 06:25 PM
edit it in dreamweaver :)

Beller
04-04-2006, 08:38 PM
Sorry ,What i meant was which template?

derekivey
04-04-2006, 10:11 PM
You can find that in the template called "Toplist".

Derek

DementedMindz
04-07-2006, 10:52 PM
i noticed i tried to remove this this way i can upgrade a few things and then install it after i do a few things but it dont remove it from sql :(

derekivey
04-07-2006, 11:25 PM
Just manually remove the toplist_ tables in your database. I forgot to add the uninstall code.

b6gm6n
04-09-2006, 06:12 PM
I thought this toplist worked? if you post the button on another site, click it you get this http://www.mysite.com/forums/in.php?id=4 (ok?...nope, it shows nothing and endlessly refreshes)...whats going on? it registers the 'in' count but only once... i've set this up to go by counts in....

https://vborg.vbsupport.ru/showpost.php?p=800212&postcount=31
Hasn't been fixed dude! :D
Might be a server issue, very annoying tho... i'll look into this

REDIRECT URL :D doh! - sorted maybe :) havent tried yet, sorry

-b6

GNDI
04-10-2006, 10:41 AM
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

derekivey
04-10-2006, 09:11 PM
I thought this toplist worked? if you post the button on another site, click it you get this http://www.mysite.com/forums/in.php?id=4 (ok?...nope, it shows nothing and endlessly refreshes)...whats going on? it registers the 'in' count but only once... i've set this up to go by counts in....

https://vborg.vbsupport.ru/showpost.php?p=800212&postcount=31
Hasn't been fixed dude! :D
Might be a server issue, very annoying tho... i'll look into this

REDIRECT URL :D doh! - sorted maybe :) havent tried yet, sorry

-b6

Glad you got it sorted :).

Derek

jaks
04-10-2006, 09:46 PM
Great script :banana:

I installed the toplist mod with no probs but when I added a VBA page to toplist.php it messes up the rating window. It tries to open the toplist.php page in the rating window instead of just the rating. You can barely resize it enough to see where you vote.

I attached a couple screenshots. The first is with a VBA page integrated and the second without a VBA page integrated.

Any way to fix this?
Thanks Jaks

derekivey
04-11-2006, 07:21 PM
I took a look at your site, and it looks like it's a vBa issue. Not sure how to fix it since I don't use vBa. Sorry :(.

Traxdata
04-14-2006, 10:47 AM
Thanks Derek. So far it is now ok, I reuploaded the images. But now if I want to add a new site get the error:
Sorry, your image could not be uploaded because the format of it is not allowed. Allowed formats are GIF, JPEG, and PNG
etc.
If adding the site through the acp it's working fine.
the same here.

Traxdata
04-14-2006, 11:10 AM
great. now when im trying to add an image i get error message

Warning: move_uploaded_file(images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR): failed to open stream: No such file or directory in /add_site.php on line 125

Warning: move_uploaded_file(): Unable to move '/tmp/phpCaSyrq' to 'images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR' in /add_site.php on line 125

Warning: getimagesize(images/toplist/buttons/sites/zV7wuCzhtu8HsuZb1thR): failed to open stream: No such file or directory in /add_site.php on line 127


i changed nothing.

derekivey
04-14-2006, 01:36 PM
It seems like a problem with your host. Does your host allow PHP file uploads? I plan to re-add the old function as an option in the next release so that people who are having problems uploading images will be able to just link to them instead.

Derek

Deska
04-14-2006, 01:51 PM
Traxdata, try to give chmod 777 folder images/toplist/buttons/sites

Traxdata
04-14-2006, 03:43 PM
Of course... :) would be helpful if I had created "sites" folder before...

Thanks for your hint!

derekivey
04-15-2006, 06:19 PM
Glad you got it working. :)

Sean James
04-17-2006, 01:15 PM
One problem i am having is that my site fails XHTML validation when i have this hack enabled.

Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 1188 column 267: required attribute "alt" not specified.

...age.php?do=view&amp;id=23" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nof

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.


2. Error Line 1188 column 271: end tag for "img" omitted, but OMITTAG NO was specified.

...php?do=view&amp;id=23" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a rel="nofollo

You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".


Is there a fix for this?

derekivey
04-17-2006, 02:36 PM
Are you sure that is coming from my hack? I don't think I have a ?do=view in mine. I just ran the validator on my dev forum where my hack is, and it passed. Could it be your skin that is affecting it?

Thanks,
Derek

derekivey
04-17-2006, 06:21 PM
Nevermind it appears this is being caused by the Toplist Images on the Forum home. Just disable that until the next version and it will be fixed.

Thanks for reporting.

Derek

derekivey
04-17-2006, 06:49 PM
If you would like to patch that part now to fix it until the upgrade comes up, here is how:

OPEN THE Toplist_Forum_Home TEMPLATE

REPLACE THE CONTENTS OF IT WITH:

<!-- Toplist Sites -->
<tbody>
<tr>
<td class="thead" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_toplist')"><img id="collapseimg_forumhome_toplist" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_toplist].gif" alt="" border="0" /></a>
$vbphrase[toplist_sites]:
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_toplist" style="$vbcollapse[collapseobj_forumhome_toplist]">
<tr>
<td class="alt1" width="100%" height="30" colspan="2"><div class="smallfont">
<!-- Using javascript for the marquee since W3 doesn't like marquees. -->
<script type="text/javascript">
<!--
document.write('<marquee direction="$vboptions[toplist_forumhome_marquee_direction]" onmouseover="this.scrollAmount=0" onmouseout="this.scrollAmount=$vboptions[toplist_forumhome_marquee_scrollamount]">$toplist_images</marquee>');
//-->
</script>
<!--
<marquee scrollamount="$vboptions[toplist_forumhome_marquee_scrollamount]">$toplist_images</marquee>
-->
</div></td>
</tr>
</tbody>
<!-- / Toplist Sites -->


SAVE

OPEN THE Toplist_Sites_Code TEMPLATE

REPLACE THE CONTENTS OF IT WITH:

<a href="$vboptions[bburl]/out.php?id=$timage[id]"><img src="$vboptions[bburl]/toplist_image.php?do=view&amp;id=$timage[id]" border="0" alt="$timage[name]" /></a>&nbsp;&nbsp;&nbsp;&nbsp;


SAVE

derekivey
04-18-2006, 01:02 AM
Version 1.0.7 has been released!

Please see the first post for the changes/additions.

To upgrade, simply follow the readme file.

Derek

b6gm6n
04-18-2006, 02:55 AM
Brilliant Update! works on my forum home now...looks wonderfull, cheers

-b6

b6gm6n
04-18-2006, 03:08 AM
One thing i would like to see is an option the remove 'views' or re-arrange the text of the toplist to underneath the button/banner... looks good now, but looked better before with those using 468px banners... :D

-b6

Sean James
04-18-2006, 09:26 AM
Version 1.0.7 has been released!

Please see the first post for the changes/additions.

To upgrade, simply follow the readme file.

Derek


Thx for the quick update dude, but there seems to be one spelling mistake:


Below are the results of checking this document for XML well-formedness and validity.

1. Error Line 1205 column 101: ID "collapseimg_forumhome_toplist" already defined.

...lapse('forumhome_toplist')"><img id="collapseimg_forumhome_toplist" src="/for

An "id" is a unique identifier. Each time this attribute is used in a document it must have a different value. If you are using this attribute as a hook for style sheets it may be more appropriate to use classes (which group elements) than id (which are used to identify exactly one element).


2. Info Line 1129 column 101: ID "collapseimg_forumhome_toplist" first defined here.

...lapse('forumhome_toplist')"><img id="collapseimg_forumhome_toplist" src="/for

3. Error Line 1210 column 11: ID "collapseobj_forumhome_toplist" already defined.

<tbody id="collapseobj_forumhome_toplist" style="">


4. Info Line 1134 column 11: ID "collapseobj_forumhome_toplist" first defined here.

<tbody id="collapseobj_forumhome_toplist" style="">



This seems to be spelled wrong collapseimg_forumhome_toplist

derekivey
04-18-2006, 09:54 AM
One thing i would like to see is an option the remove 'views' or re-arrange the text of the toplist to underneath the button/banner... looks good now, but looked better before with those using 468px banners... :D

-b6

Sorry about that I forgot to add that. You can just remove it from the templates if you want and change the alt classes so they are like before. I will include an option in the next release though.

Derek

derekivey
04-18-2006, 09:54 AM
Thx for the quick update dude, but there seems to be one spelling mistake:



This seems to be spelled wrong collapseimg_forumhome_toplist


I'll take a look and see if I can release a fix for that.

Thanks,
Derek

Sean James
04-18-2006, 09:58 AM
I'll take a look and see if I can release a fix for that.

Thanks,
Derek

np dude thx for taking the time to release such a great hack ;)

im still have the hack activated i just have it disabled on the homepage for now, as apart from this problem with XHTML validation on the homepage the rest of the script passes perfectly.

jellybaby
04-18-2006, 06:31 PM
The banners I had on my previous version arent showing now is that right? Do they need re-adding

derekivey
04-18-2006, 06:48 PM
The banners I had on my previous version arent showing now is that right? Do they need re-adding
Which banners? The ones the users add or the ones that you added for them to put on their sites?

derekivey
04-18-2006, 06:51 PM
np dude thx for taking the time to release such a great hack ;)

im still have the hack activated i just have it disabled on the homepage for now, as apart from this problem with XHTML validation on the homepage the rest of the script passes perfectly.

Hmm I can't seem to reproduce those errors. Do you have the old template edit in or something? Now it edits the template on the fly so there could be a chance that you have the old code in. Can you turn that back on and give me a URL to your site so I can check it out?

Thanks,
Derek

jellybaby
04-18-2006, 06:53 PM
Which banners? The ones the users add or the ones that you added for them to put on their sites?

The ones that the users added. Im wonder if I have a permission wrong somewhere as there is an x showing where the banner was.

derekivey
04-18-2006, 09:28 PM
They should be there. Did you accidentally delete the /images/toplist/buttons/sites folder?

Roms
04-18-2006, 11:27 PM
Thanks, works great!! *Installed

ubblite
04-19-2006, 07:38 AM
A few questions:

Anyone know if the scroll can be turned off on the forumhome page and just show the images or links?

Is there a a way to turn off the "Button Image"?

And if I have Show User Banners enabled, when viewing Currently Active Users it says:

Unknown Location /toplist_image.php?do=view...

and if you click on that link it will just bring up the button image alone.

Also, I have my main table width set at 760px and after adding a new site under Site Added Successfully, it breaks the table width & goes way off to the right side.

derekivey
04-19-2006, 10:01 AM
Anyone know if the scroll can be turned off on the forumhome page and just show the images or links?

Just edit the Toplist_Forum_Home template and remove the marquee in it leaving $toplist_images where the marquee tags were.


Is there a a way to turn off the "Button Image"?

Toplist --> Toplist Options -> Show User Banners (set to no)


And if I have Show User Banners enabled, when viewing Currently Active Users it says:

Unknown Location /toplist_image.php?do=view...

and if you click on that link it will just bring up the button image alone.

Looks like a bug with the WOL. I will take a look and fix it when I get back from school.


Also, I have my main table width set at 760px and after adding a new site under Site Added Successfully, it breaks the table width & goes way off to the right side.

I'll have to take a look at this. It hasn't happened to me before I will see if I can find out what is wrong.

Thanks,
Derek

derekivey
04-21-2006, 01:50 AM
I have fixed a bug with the views counter not counting views from guests. Simply upload and overwrite the attached php file. The zip file has been updated also.

Derek

dendrob
04-21-2006, 02:04 AM
Thanks for the fix... I'll check in the morning. Much appreciated

Ramsesx
04-21-2006, 02:39 AM
The new file gives me a db error:
Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE vb3_toplist_sites SET
out=out+1,
views=views+1
WHERE id='9';

MySQL Error : Unknown column 'views' in 'field list'
Error Number : 1054

ocyberbum
04-21-2006, 07:40 AM
Hopefully this has not been asked already but I have toplist installed and im trying to do some link exchanges with other sites that have toplist or something like it and i need to know if i missed something or if there is a way to have a choice between uploading a banner and linking a banner because i need to use there html code so i can get credit on there site when someone clicks on it on my toplist... In the code below, i believe i can use the (Site Url), on the first line <a href="http://www.hot-car-sites.com/"> and fill in the name, & Description as normal but i dont see away to use the banner part of the link on the 2nd line?

example of what i need to put in for the banner to get credit

<a href="http://www.hot-car-sites.com/">
<img src="http://www.hot-car-sites.com/button.php?u=vacustoms" alt="Hot-Car-Sites" border="0" />
</a>

Any suggestions would be great..
Thanks in advance...

derekivey
04-21-2006, 09:57 AM
The new file gives me a db error:
Database error in vBulletin 3.5.0:

Invalid SQL:
UPDATE vb3_toplist_sites SET
out=out+1,
views=views+1
WHERE id='9';

MySQL Error : Unknown column 'views' in 'field list'
Error Number : 1054

Are you running the latest version (1.0.7) of my hack? It looks like you are missing the views field. If you are not upgraded yet, please upgrade, but if you did, just execute this query in vB's admincp or PHPMyAdmin.
ALTER TABLE `vb3_toplist_sites` ADD `views` INT( 25 ) UNSIGNED NOT NULL;

Derek

derekivey
04-21-2006, 10:00 AM
Hopefully this has not been asked already but I have toplist installed and im trying to do some link exchanges with other sites that have toplist or something like it and i need to know if i missed something or if there is a way to have a choice between uploading a banner and linking a banner because i need to use there html code so i can get credit on there site when someone clicks on it on my toplist... In the code below, i believe i can use the (Site Url), on the first line <a href="http://www.hot-car-sites.com/"> and fill in the name, & Description as normal but i dont see away to use the banner part of the link on the 2nd line?

example of what i need to put in for the banner to get credit

<a href="http://www.hot-car-sites.com/">
<img src="http://www.hot-car-sites.com/button.php?u=vacustoms" alt="Hot-Car-Sites" border="0" />
</a>


Any suggestions would be great..
Thanks in advance...
Right now it just uploads the images. I am going to be adding the ability to just link to them also.

Derek

ocyberbum
04-21-2006, 11:35 AM
I was looking in the cp and there was a option to allow HTML and i didn't know if that could be used to do something........but still its a nice hack:up: I cant wait for that feature.....:banana:

jellybaby
04-21-2006, 12:22 PM
They should be there. Did you accidentally delete the /images/toplist/buttons/sites folder?

No I didnt have one in the previous version of my Toplist.

C_P
04-21-2006, 05:46 PM
Awesome hack and great installation instructions Derek!

derekivey
04-21-2006, 06:55 PM
No I didnt have one in the previous version of my Toplist.

There should be one. Please upload the latest files again and chmod the /images/toplist/buttons/sites folder to 777. It should work then. That folder is needed to store the images in.

derekivey
04-21-2006, 06:56 PM
I was looking in the cp and there was a option to allow HTML and i didn't know if that could be used to do something........but still its a nice hack:up: I cant wait for that feature.....:banana:
What feature do you mean? BTW, that option when set to yes allows them to add HTML to their description, I highly recommend leaving it set to no to prevent any security problems.

bigfoot
04-21-2006, 11:09 PM
Hi,

I just installed this great product :D but I ran in to a major problem: I have not access to the toplist, and I can't find where to edit this in Admin CP. I even found where to edit this on the screenshots - but when i go to my ACP it isn't there.

What could possible be wrong ???

ocyberbum
04-21-2006, 11:36 PM
Right now it just uploads the images. I am going to be adding the ability to just link to them also.

Derek

This one :)

derekivey
04-21-2006, 11:43 PM
If you are getting a permission error, please make sure you edited each user group's permissions under Usergroups on the left frame of the Admin CP.

That should fix it.

Derek

derekivey
04-21-2006, 11:48 PM
This one :)
Ok. That one will hopefully be in the next release.

Derek

chriszep
04-25-2006, 08:38 AM
hello when I upload product-toplist.xml

i have this
atabase error in vBulletin 3.5.3:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Tuesday, April 25th 2006 @ 11:36:24 AM
Script : http://www.xxxxxxxxxxxxxx.com/forums/admincp/plugin.php
Referrer : http://www.xxxxxxxxxxxxxx.com/forums/admincp/plugin.php?do=productadd
IP Address : xxxxxxxxxxxxxxxxxxx
Username : xxxxxxxxxxxxxxxxxxxxxxxx
Classname : vb_database

Thanks

derekivey
04-25-2006, 09:49 AM
Try removing that query from the install code in the XML file and try reimporting it again, or if there are no sites on your toplist yet, you can drop all of the toplist_* tables and reimport.

Derek

Ramsesx
04-25-2006, 11:36 AM
Are you running the latest version (1.0.7) of my hack? It looks like you are missing the views field. If you are not upgraded yet, please upgrade, but if you did, just execute this query in vB's admincp or PHPMyAdmin.
ALTER TABLE `vb3_toplist_sites` ADD `views` INT( 25 ) UNSIGNED NOT NULL;

Derek
Sorry, you're right I don't have the latest version.
One wish for a next version, could you make an option for disabling the rating system because I have some user rating the concurrent sites bad.
Thank you

derekivey
04-25-2006, 06:49 PM
Sure, I will add that option. I might also add a banning option.

Derek

cat4m
04-26-2006, 01:14 AM
I keep getting this error when I try to add an image to the site :
Warning: getimagesize(/home/lovespir/public_html/loveforum/images/toplist/buttons/sites/trcv75d4FUtp179je4ne): failed to open stream: No such file or directory in /admincp/toplist_admin.php on line 393
Can anyone help at all. I have been looking through the thread but cant find anything that works. Thanks in advance.

derekivey
04-26-2006, 09:53 AM
Make sure the /images/toplist/buttons/sites folder exists and is writable (chmod 777).

chriszep
04-27-2006, 09:08 AM
Try removing that query from the install code in the XML file and try reimporting it again, or if there are no sites on your toplist yet, you can drop all of the toplist_* tables and reimport.

Derek

ok I made it but another error with duplicate
Database error in vBulletin 3.5.3:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Thursday, April 27th 2006 @ 12:07:11 PM
Script : http://xxxxxxxxxxxxxxx/forums/admincp/plugin.php
Referrer : http://xxxxxxxxxxxxxxxxxxxx/forums/admincp/plugin.php?do=productadd
IP Address : xxxxx
Username : Cxxxx
Classname : vb_database

how to uninstall everything in the data base ?

derekivey
04-27-2006, 10:05 AM
You have to use PHPMyAdmin to remove all the toplist_* tables, and there is a field in the usergrouppermissions table.

Derek

cat4m
04-28-2006, 04:48 PM
Make sure the /images/toplist/buttons/sites folder exists and is writable (chmod 777).


How do I make it writable ? And what is chmod 777 ? Sorry I dont know much about this. Everything else is working but the image picture.

derekivey
04-28-2006, 06:41 PM
There should be a feature in your FTP program to let you give it write permissions. If you can't find it talk to your webhosting provider. They should be able to help you out.

Derek

cat4m
04-29-2006, 12:16 PM
I will try to sort it out myself because my host takes about 2 weeks to reply to any of my queries. I dont know anything about ftp programs but i will see what I can find in the cpanel.

derekivey
04-29-2006, 12:53 PM
cPanel's file manager lets you change the permissions also. Just click on the files, and then in the right frame there should be a link that says Change Permissions.

Derek

cat4m
04-29-2006, 09:35 PM
Thanks very much for your help

cat4m
04-29-2006, 09:47 PM
Sorry mate, tried to do what you said and it still dont work so I am going to uninstall the lot tomorrow. Thanks for your help anyway.

ubblite
05-03-2006, 11:34 PM
A few problems with this Toplist hack:

When adding a site and not selecting any image, I get this:
Warning: unlink(images/toplist/buttons/sites/8) [function.unlink]: No such file or directory in /add_site.php on line 356

Also, in CMPS the image shows up even if: "Show Site Images on Forum Home?" is checked No. It would be nice if this feature worked in CMPS.

Thanks

derekivey
05-04-2006, 12:53 AM
I don't get that error at all on my dev board, but if you want you can do this file edit so it doesn't come up at all...

Open add_site.php:

Find (all of these):
unlink("images/toplist/buttons/sites/".$key);

Replace With (some already have the @, only do it for the ones that dont):
@unlink("images/toplist/buttons/sites/".$key);

Also, I haven't had a chance to update the CMPS module, I will have a new version out soon to have that option supported.

Derek

GNDI
05-04-2006, 02:17 AM
When I try to enter the toplist from the board i get the follwing message:

you do not have permission to access this page. This could be due to one of several reasons:

1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


I'll don't think that is cool :confused:

GNDI
05-04-2006, 02:23 AM
Ok found the soluution in the "Usergroups" under admincp you have forgotten to write this in your readme.html file

derekivey
05-04-2006, 02:28 AM
No, it's in the readme file. It's step 4 in the instructions...

Derek

ubblite
05-04-2006, 03:13 AM
I don't get that error at all on my dev board, but if you want you can do this file edit so it doesn't come up at all...

Open add_site.php:

Find (all of these):
unlink("images/toplist/buttons/sites/".$key);

Replace With (some already have the @, only do it for the ones that dont):
@unlink("images/toplist/buttons/sites/".$key);

Also, I haven't had a chance to update the CMPS module, I will have a new version out soon to have that option supported.

Derek

ok, I did what you suggested but now when I leave this blank: Image (Optional):, the next page displays this:

"Sorry, The image cannot be added! The width and height of it exceeded the limit on this toplist. Please try again."

So basically it's the same problem as before - I can't enter any site without an image.

Ramsesx
05-05-2006, 12:38 AM
Hi derek, I changed my site to a new server and new domain now I get this error:
Database error in vBulletin 3.5.4:

Invalid SQL:
UPDATE vb3_toplist_sites SET out=out+1 WHERE id='27';

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'out=out+1 WHERE id='27'' at line 1
Error Number : 1064
Date : Friday, May 5th 2006 @ 03:37:23 AM
Script : http://www.mydomain.de/forum/out.php?id=27
Referrer : http://www.mydomain.de/index.php
IP Address : 87.123.18.57
Username : MC
Classname : vb_database
Please can you give me a hint where i need to look? Thank you.

derekivey
05-05-2006, 01:55 AM
I'm not too sure. I would have to take a look at it. Can you please PM me the URL to your site so I can take a look?

Thanks,
Derek

ubblite
05-05-2006, 09:20 AM
derekivey,

Any luck with a solution to my above posted problem?

Thanks

derekivey
05-05-2006, 09:42 AM
Can you PM me a link to your site as well so I can look at it?

Thanks,
Derek

chriszep
05-08-2006, 10:19 AM
You have to use PHPMyAdmin to remove all the toplist_* tables, and there is a field in the usergrouppermissions table.

Derek
ok I have done it , remove everything with "toplist" (made a search in PHPMyAdmin ) and remove field in the usergrouppermissions table.
now when I ulpload the product , i have this :
Database error in vBulletin 3.5.3:

Invalid SQL:
ALTER TABLE `toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;;

MySQL Error : Duplicate column name 'status'
Error Number : 1060
Date : Monday, May 8th 2006 @ 01:18:09 PM
Script : http://xxxxxxxxxxxxxxxxxxxx/forums/admincp/plugin.php
Referrer : http://xxxxxxxxxxxxxxxx/forums/admincp/plugin.php?do=productadd
IP Address : xxxxxxxxxxxxxxxxxxxxx
Username : xxxxxxxxxxxxxx
Classname : vb_database

thanks ;)

derekivey
05-08-2006, 07:14 PM
Remove that code from the install code and try again.

ALTER TABLE `" . TABLE_PREFIX . "toplist_sites` ADD `status` VARCHAR( 20 ) DEFAULT 'active' NOT NULL AFTER `out`;

lasor
05-11-2006, 09:48 AM
Excellent Job Thanks....

One question on frontpage is the anyway to open links in new window. I have selected this option in the acp options and it works fine on my toplist page but the links on the frontpage do not open in new window?

Thanks

derekivey
05-11-2006, 06:44 PM
The CMPS module might not have that yet, I'm not sure if I added it or not. You can easilly add it by editing the module's template though.

Derek

lasor
05-11-2006, 06:58 PM
Thanks for that...But can give me a little more of a clue..Sorry Im not an 100% upto date with vBulletin and coding...

Thanks again

lasor
05-12-2006, 11:50 AM
Another really cool option would be the ability to disable indevidual banners from being displaid on the front page. I am pretty sure there must be a pretty simple way of doing this...

derekivey
05-12-2006, 04:29 PM
I'll try to add this as well. One question though, do you mean disable certain sites from showing on the module or what?

Derek

lasor
05-12-2006, 08:01 PM
Thanks for that...What I mean it would be great if you could select which banners where to be displaid on the frontpage marquee. I am not refering to the actual top list page that is fine as it is... but it would be great to be able to select which banners are displaid in the marquee on the frontpage...I hope I am making sense.

Thanks

azn_romeo_4u
05-13-2006, 02:03 PM
anyone have any more demo's of this hack in live preview mode?

derekivey
05-13-2006, 03:19 PM
Thanks for that...What I mean it would be great if you could select which banners where to be displaid on the frontpage marquee. I am not refering to the actual top list page that is fine as it is... but it would be great to be able to select which banners are displaid in the marquee on the frontpage...I hope I am making sense.


Thanks

I'll take a look at adding that in the next version.

anyone have any more demo's of this hack in live preview mode?
http://www.spacialhosting.com/toplist.php

dendrob
05-18-2006, 02:16 PM
Here's another demo:

http://www.orchidboard.com/community/toplist.php

Derek, any possibility of counting all pageviews from all visitors, not just from users.

ie. My ultimate scenario:
You have a site listed in your toplist, that site has a rank button that changes...say today they're ranked #7 and that rank is seen on their own webpage on the button, so 7.gif is displayed on their page. In addition in toplist they will be ranked as #7 and the total number of pageviews will show all the pageviews that their site has received. Ranking would of course be by pageviews received and it would be ranked daily, or weekly or something. This is how it works on vivariumforum.com but the topsite is not integrated with the forum. It's nice to have sites ranked according to their true popularity, not just the popularity from within the list of members. I hope I'm making sense.

AArdvark has a great topsite, but it's not integrated into VB, which sucks. If you could add some of the features this mod would clean house!!!!

derekivey
05-18-2006, 06:44 PM
Here's another demo:

http://www.orchidboard.com/community/toplist.php

Derek, any possibility of counting all pageviews from all visitors, not just from users.

ie. My ultimate scenario:
You have a site listed in your toplist, that site has a rank button that changes...say today they're ranked #7 and that rank is seen on their own webpage on the button, so 7.gif is displayed on their page. In addition in toplist they will be ranked as #7 and the total number of pageviews will show all the pageviews that their site has received. Ranking would of course be by pageviews received and it would be ranked daily, or weekly or something. This is how it works on vivariumforum.com but the topsite is not integrated with the forum. It's nice to have sites ranked according to their true popularity, not just the popularity from within the list of members. I hope I'm making sense.

AArdvark has a great topsite, but it's not integrated into VB, which sucks. If you could add some of the features this mod would clean house!!!!
I'll prolly add that. Haven't been working on the hack because I've been really busy with school. Hopefully I can release a new version soon though.

Derek

dendrob
05-18-2006, 06:50 PM
You will make me very happy!!! I am sure that others will find that feature extremely useful too, especially that it will reflect the true statistic of how the listed site is really ranking according to unique traffic.

derekivey
05-18-2006, 06:52 PM
Hopefully this weekend I can work on it...

Konstantinos
05-21-2006, 04:13 PM
i cant add image i get error that file format is . it doesnt work right i only can add image when edit the button.

also i want Enter the maximum number of sites you want your users to have listed. this setting per usergroup admin to be able to add more sites than the members

derekivey
05-21-2006, 06:33 PM
i cant add image i get error that file format is . it doesnt work right i only can add image when edit the button.

also i want Enter the maximum number of sites you want your users to have listed. this setting per usergroup admin to be able to add more sites than the members

What type of image are you adding?

Also I don't understand your second problem. Please clarify.

Thanks,
Derek

Mr Peabody
05-27-2006, 10:18 PM
Howdy ho

Been using this hack for awhile with no problems and its fantastic. I just noticed recenty the marquee stoped working.
Been playing with it and found if i limited the sites to 8 it would start working again, anything over it just goes blank.
Any Ideas?
Cheers
Travis

derekivey
05-27-2006, 11:02 PM
I'll have to take a look and see if I can reproduce that. How many sites are currently in the Toplist?

Thanks,
Derek

Mr Peabody
05-27-2006, 11:55 PM
11 :)

dendrob
05-29-2006, 12:18 AM
Derek...what's the ETA on 1.0.8 ???

derekivey
05-29-2006, 12:52 AM
11 :)

I'll see if I can reproduce that and let you know if I find anything out.

Derek...what's the ETA on 1.0.8 ???
Hopefully in a few days if I get more time to work on it. I can't make any promises though...

Derek

vonedaddy
05-31-2006, 01:21 PM
I am having the same issues when uploading a button. It tells me I have the wrong format, but if I edit the site it works fine.

derekivey
05-31-2006, 07:38 PM
I'll look into it. It might be some kind of bug. What image format are you trying to upload?

Derek

Blue-Inc
05-31-2006, 10:22 PM
Hi there,

Thanks for the great hack, but my users are having problems when uploading a button: http://blue-inc.org/showpost.php?p=2592&postcount=6

And look here: http://blue-inc.org/toplist.php

Account:

Username: test
Password: test

Try uploading a button, please. And look after when you upload a button....as you can see it's quite a problem for me, and look at this: http://blue-inc.org/images/toplist/buttons/dynamic/image.png?id=7

I'm like what the heck went wrong there, and is there some where I can pay to get support for this hack? :cool:

derekivey
05-31-2006, 11:53 PM
Hmm, it must be a bug then. Can you find out what image types he tried to upload?

Thanks,
Derek

Mr.D
06-01-2006, 07:06 AM
how can i add buttons on right side of my forum or entire vbulletin?

Blue-Inc
06-01-2006, 07:44 AM
Hmm, it must be a bug then. Can you find out what image types he tried to upload?

Thanks,
Derek


.gif

But whenever I upload it, it works perfect!
http://blue-inc.org/images/toplist/buttons/dynamic/image.png?id=7

Can you also look at that dynamic link above? it comes with the topsite, where you can put that link on your site in HTML format. But doesn't seem to be working

Thanks, and what's your paypal? ;)

derekivey
06-01-2006, 09:52 AM
.gif

But whenever I upload it, it works perfect!
http://blue-inc.org/images/toplist/buttons/dynamic/image.png?id=7

Can you also look at that dynamic link above? it comes with the topsite, where you can put that link on your site in HTML format. But doesn't seem to be working

Thanks, and what's your paypal? ;)

Open images/toplist/buttons/dynamic/image.png,

Find:
chdir('/home/derek/public_html/vbtest');

Replace That With the Path to your Forum.

Also, I'll look into that bug. Maybe it's some kind of permission bug where only admins can add them or something. Really weird, I'll let you guys know if I find anything and patch it.

Derek

Mr.D
06-01-2006, 11:56 AM
Open images/toplist/buttons/dynamic/image.png,

Find:
chdir('/home/derek/public_html/vbtest');

Replace That With the Path to your Forum.

Also, I'll look into that bug. Maybe it's some kind of permission bug where only admins can add them or something. Really weird, I'll let you guys know if I find anything and patch it.

Derek

I was having the problem with that images would not upload then i have chmoded 777 folder where images are uploaded and in add_site.php i have changed the path directly to the forum and upload folder.

i think that will do the trick for me it works like a charm.

Can someone help me with my question

how can i add buttons on right side of my forum or entire vbulletin?

b6gm6n
06-01-2006, 05:38 PM
Just wanted to add that this is such a brilliant mod for vB... i paid $60 for a toplist which i ultimately wanted integrated into vB... they couldn't convert and although their soft was great... i felt that this mod was far better...i'll be making a donation soon...great Mod, cheers

-b6

Blue-Inc
06-01-2006, 06:20 PM
Also Derek, are you going to update this to vB v3.6?

And il do that Derek, Il let you know how it goes.

derekivey
06-01-2006, 06:48 PM
I was having the problem with that images would not upload then i have chmoded 777 folder where images are uploaded and in add_site.php i have changed the path directly to the forum and upload folder.

i think that will do the trick for me it works like a charm.

Can someone help me with my question

how can i add buttons on right side of my forum or entire vbulletin?

Sorry, I don't understand what you mean. Can you like make an example image for me to see? Thanks.

Just wanted to add that this is such a brilliant mod for vB... i paid $60 for a toplist which i ultimately wanted integrated into vB... they couldn't convert and although their soft was great... i felt that this mod was far better...i'll be making a donation soon...great Mod, cheers

-b6
Thanks, glad you like it! Summer is almost here, so when school is out, I will have a lot more time to work on this and make it even better. Sorry for the slow development lately, I have been studying for Finals which are next week.

Also Derek, are you going to update this to vB v3.6?

And il do that Derek, Il let you know how it goes.
Yes I plan to port it to 3.6. I will hopefully start doing that once the first beta is out.

Derek

Mr.D
06-03-2006, 05:18 AM
I would suggest that banners can be shown on entire vbulletin and not just forumhome. Maybe make some kind of toplist generator that generates php code or javascript so users can set how many banners can they show, how they must be ordered by (example... By hits in or hits out by name or....) and how many must be in the row and in the column and then they paste that code where they want in vbulletin. This would be a great feature in this Toplist.

derekivey
06-03-2006, 01:28 PM
So you mean like using something like amykhar's Put a Column on the RIGHT side of every forum page hack to show user banners on?

Mr.D
06-03-2006, 02:40 PM
yes so it could work on all pages is that posible

derekivey
06-03-2006, 02:52 PM
Ok I'll take a look at adding it as an addon soon. I am currently working on releasing the next version of this hack so that will come after it whenever I can make it.

Derek

derekivey
06-03-2006, 02:54 PM
By the way guys. Here are some screenshots of my progress so far. So far I have the feature that checks to see if the code has been added to their site done. I just need to make the cronjob that can automatically check it and validate it. The code checking feature is optional and can be disabled or enabled in the settings. All it does is looks for the board URL on each site and validates the site if it is found.

Derek

Mr.D
06-03-2006, 03:09 PM
Great when can we aspect the release

derekivey
06-03-2006, 03:16 PM
Not sure when, I've been busy studying for finals which are Tuesday and Wednesday. So hopefully after those 2 days sometime maybe, before, I don't know exactly when.

vonedaddy
06-05-2006, 12:33 AM
Great hack, I have one small problem. The dynamic image.png button does not work, I editted according to your directions in post #450. Any ideas?

derekivey
06-05-2006, 01:10 AM
Can you paste the contents of it here in tags please?

Thanks,
Derek

vonedaddy
06-06-2006, 04:20 AM
<?php

/*================================================= =====================*\
|| ################################################## ################## ||
|| # Toplist Hack - Version 1.0.6 # ||
|| # For vBulletin 3.5.3 # ||
|| # ---------------------------------------------------------------- # ||
|| # By Derek Ivey (derek@modbb.com) # ||
|| # This hack may not be redistributed without my written permission # ||
|| ################################################## ################## ||
\*================================================ ======================*/

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'toplist_dynamic_image');

// ######################### REQUIRE BACK-END ############################
// change the following to the path to your forum, with no ending slash.
chdir('/home/u1/vonaone/html/forum');
require_once('global.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

// ############################## MISC STUFF #############################
header("Content-type: image/png");
$image = imagecreatefrompng("images/toplist/buttons/dynamic/background.png");
$color = imagecolorallocate($image, 0, 0, 255);
$font = 3;

// ######################### GRAB INFO FROM DB ###########################
//$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='8'";
$sql = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites WHERE id='".$db->escape_string($_GET['id'])."'";
$sqlr = $db->query_read($sql);
$sr = $db->fetch_array($sqlr);

if ($vbulletin->options['toplist_ranking_method'] == 0)
{
$order = '`in`';
}
else if ($vbulletin->options['toplist_ranking_method'] == 1)
{
$order = 'out';
}
else if ($vbulletin->options['toplist_ranking_method'] == 2)
{
$order = 'rating_average';
}
else
{
$order = '`in`';
}

$rank1 = "SELECT * FROM " . TABLE_PREFIX . "toplist_sites ORDER BY ".$order." DESC";
$rank2 = $db->query_read($rank1);
$i = 1;
while($rank3 = $db->fetch_array($rank2))
{
if ($rank3['id'] == $_GET['id'])
{
$rank = $i;
}
else
{
$i++;
}
}

// ############################# CREATE IMAGE ############################
imagestring($image, $font, 44, 28, $rank, $color);
imagestring($image, $font, 52, 42, $sr['in'], $color);
imagestring($image, $font, 62, 56, $sr['out'], $color);
imagestring($image, $font, 52, 70, $sr['rating_average'], $color);
imagestring($image, 2, 5, 83, $sr['name'], $color);

imagepng($image);
imagedestroy($image);
?>

derekivey
06-06-2006, 09:44 AM
See what the permissions are for that file. Make sure it has execute permissions (CHMOD 755). Please let me know if that fixes it.

Thanks,
Derek

vonedaddy
06-06-2006, 11:46 AM
See what the permissions are for that file. Make sure it has execute permissions (CHMOD 755). Please let me know if that fixes it.

Thanks,
Derek

No Sir, any other ideas?

derekivey
06-06-2006, 07:25 PM
Make sure the .htaccess file is in that folder and also make sure your host supports .htaccess and also has GD.

vonedaddy
06-06-2006, 09:59 PM
Make sure the .htaccess file is in that folder and also make sure your host supports .htaccess and also has GD.

Yes to all of the above, we use gd 2 btw.