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


All times are GMT. The time now is 04:30 AM.

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.01892 seconds
  • Memory Usage 1,763KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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