vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The Itemshop v5 (Original) (https://vborg.vbsupport.ru/showthread.php?t=38090)

Jitway 11-22-2002 12:29 AM

Ok I got a couple questions.

First how do I show my points in the postbit template and second I get a red x for the items and I have no items but the url is this http://www.jitway.com/forums/images/itemshop/.gif and by reading the hack it should be prg.gif or No Item.gif since I have no items.

mli 11-23-2002 03:35 PM

Yea, same thing happens to me. The red X's. Could someone help out?

ULTIMATESSJ 11-23-2002 05:18 PM

Quote:

Originally posted by Jitway1
Ok I got a couple questions.

First how do I show my points in the postbit template and second I get a red x for the items and I have no items but the url is this http://www.jitway.com/forums/images/itemshop/.gif and by reading the hack it should be prg.gif or No Item.gif since I have no items.

use an ftp program and get rid of the name, so the ending file is called

.gif

it works with WS_FTP and should work with others, as long as your not using the browser for FTP Uploading

mli 11-23-2002 05:30 PM

No, that's not the problem. The problem is that there is no filename. There is just .gif as the file name....

Jitway 11-23-2002 05:41 PM

I used a ftp program flashfxp to be exact and as stated above the file names are uploaded correctly but the url for the item is showing up as just .gif and since there is no file just called .gif you get a red x. By reading the hack in the admin functions.php the file should be either prg.gif or No Item.gif if you have no items and not just .gif. So that is the problem. Does anyone have a suggested fix? :banana:

Bitsys 11-23-2002 06:09 PM

Comment out the following code, assuming you used rake's fix above:

PHP Code:

global $totalcats;
for (
$i 1$i <= $totalcats[0]; $i++) {
    if(
$post['item$i']!='No Item') {
        if(empty(
$post['icon$i'])) {
            
$itemid "itid$i";
            
$iconid "icon$i";
            
$itemname "item$i";
            
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$itemid]\"><img src=\"{ imagesfolder}/itemshop/$post[$iconid].gif\" border=\"0\"></a> ";
        } else {
            
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$itemid]\"><img src=\"{ imagesfolder}/itemshop/$post[$itemname].gif\" border=\"0\"></a> ";
        }
    } else {
        
$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
    }


To comment, just put the characters " /* " in front of it and the characters " */ " at the end of it (without the quotes, of course).

Now, once the above is commented out, put the following code below it:

PHP Code:

global $totalcats;
$nr=1;
$count=1;
while (
$count <= $totalcats[0]) {
        
$xc="item$nr";
        
$xv "itid$nr";
        if(!isset(
$post[$xv])) {
                
$nr++;
                continue;
        }
        if(
$post[$xc]!='No Item' AND isset($post[$xc])) {
                
$xvv "item$nr";
                
$xv "itid$nr";
                
$xvvv "icon$nr";
                if(empty(
$post[$xvvv])) {
                        
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{ imagesfolder}/itemshop/$post[$xvv].gif\" border=\"0\"></a> ";
                } else {
                        
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{ imagesfolder}/itemshop/$post[$xvvv].gif\" border=\"0\"></a> ";
                }
        } else {
                
//$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
        
}
        
$nr++;
        
$count++;


Don't forget to remove the space from { imagesfolder} (there are several instances of it). The space is there so that vBulletin.org doens't replace it with it's own url.

Also, if you remove the " // " from the line
PHP Code:

//$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> "; 

then it will try to display the No Item grahpic. I commented this out on my board because it added extra space that was not necessary.
This works on my server, but it may or may not work on yours. If it doesn't work, then just delete the code you inserted and remove the comment tags from rake's fix and you will be back to square one.

Jitway 11-23-2002 09:09 PM

Thanks for the help it worked...or at least it got rid of the red x's...won't know if it really works till I buy some items :cool: .

Mijae 11-25-2002 01:26 AM

Quote:

Originally posted by girlzclan
this happens everytime i try to donate, iv'e installed this hack on 4 different forums and im getting the same thing everytime :(

Database error in vBulletin 2.2.8:

Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
mysql error: Unknown column 'Array' in 'where clause'

mysql error number: 1054

Date: Monday 21st of October 2002 09:06:06 PM
Script: http://www.girlzclan.com/forums/forums/itemshop.php
Referer: http://www.girlzclan.com/forums/item...donate&user=11

same with me, anyone help?

Mijae 11-25-2002 02:58 PM

Also, the fix above to reduce queries doesnt work, neither your fix of the fix. I dont get red X, nothing shows up. When I view the source code it says img src=No Item.gif

Bitsys 11-25-2002 09:19 PM

Quote:

Originally posted by v0id
Also, the fix above to reduce queries doesnt work, neither your fix of the fix. I dont get red X, nothing shows up. When I view the source code it says img src=No Item.gif
How many items are in your inventory? Also, what are the item names and IDs?


All times are GMT. The time now is 07:43 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.01661 seconds
  • Memory Usage 1,767KB
  • 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
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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