vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Toplist (https://vborg.vbsupport.ru/showthread.php?t=98646)

Traxdata 04-14-2006 10:47 AM

Quote:

Originally Posted by Ramsesx
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.

Quote:

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:
PHP Code:

<!-- 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:
PHP Code:

<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

Quote:

Originally Posted by derekivey
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:

Quote:

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

Quote:

Originally Posted by b6gm6n
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

Quote:

Originally Posted by Griffin80
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

Quote:

Originally Posted by derekivey
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

Quote:

Originally Posted by jellybaby
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

Quote:

Originally Posted by Griffin80
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

Quote:

Originally Posted by derekivey
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

Quote:

Originally Posted by ubblite
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.

Quote:

Originally Posted by ubblite
Is there a a way to turn off the "Button Image"?

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

Quote:

Originally Posted by ubblite
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.

Quote:

Originally Posted by ubblite
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

Quote:

Originally Posted by Ramsesx
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.
[sql]ALTER TABLE `vb3_toplist_sites` ADD `views` INT( 25 ) UNSIGNED NOT NULL;[/sql]

Derek

derekivey 04-21-2006 10:00 AM

Quote:

Originally Posted by ocyberbum
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

Quote:

Originally Posted by derekivey
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

Quote:

Originally Posted by jellybaby
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

Quote:

Originally Posted by ocyberbum
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

Quote:

Originally Posted by derekivey
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

Quote:

Originally Posted by ocyberbum
This one :)

Ok. That one will hopefully be in the next release.

Derek


All times are GMT. The time now is 07:56 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02479 seconds
  • Memory Usage 1,865KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete