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)
-   -   User Icons and Store integration (https://vborg.vbsupport.ru/showthread.php?t=48993)

Dark Jim 02-15-2003 10:00 PM

User Icons and Store integration
 
For this hack you need the following other hacks: Store and User Icons. It makes custom user icons buyable in the store just like custom avatars. This works on vBulletin 2.3.0.

Vivi Ornitier 02-19-2003 11:25 PM

nice nice

Dark Jim 02-19-2003 11:41 PM

Expect an update on the user icon hack soon which should remove all those extra queries. :) Just need a little help with that otherwise I would have done it sooner.

007 03-01-2003 11:33 PM

Does this have any changes since the updated icon hack? I'm going to install it now so I guess I'll find out, but if you see this please let me know. :) Thanks.

Dark Jim 03-01-2003 11:44 PM

Nope, this does not need updating. :)

007 03-02-2003 03:58 AM

K this screwed up a lot of things in member.php... are you sure this works? Weird. A bunch of calls for non objects all over the place.

Serge 03-02-2003 07:56 AM

By the sound of it did you run the the querys or install file. I personally have not installed or download this hack but I'm just wondering because if querys are making calls to non objects usally means there was querys you had to run or an install script that you had to run but didn't so there is nothing near thus the error.

Erwin 03-02-2003 09:50 AM

Why not put this in with your User Icon hack? :) Why a separate thread?

Dark Jim 03-02-2003 10:20 AM

Dunno, thought it would be easier to seperate it. And 006, you did get the icon hack to work right without this addon? And if you get any errors, please post them here.

007 03-02-2003 07:59 PM

Yeah I got it to work, but once I installed this it screwed a lot of things up. I went back to revert back to my old versions of the files, and accidentally deleted the ones that I had already hacked, so I just had the versions from before. I didn't feel like fixing it all at the time so I just renamed the ones that were left "member_aftericonhack.php" and so on. I'll have to wait till I feel like sitting down to a 2 hour hacking job again before I redo it lol. The other thing was that I found a few bugs. These could just be me, but here's what I got:

In announcement.php:
PHP Code:

Database error in vBulletin 2.2.9:

Invalid SQL
SELECT
announcementid
,startdate,enddate,announcement.title,pagetext,user.*,userfield.*
,
avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
//start user icon hack
,iconavatar.iconavatarpath,NOT ISNULL(customiconavatar.iconavatardata) AS hascustomiconavatar,customiconavatar.dateline AS iconavatardateline
//end user icon hack
FROM announcement
LEFT JOIN user ON user
.userid=announcement.userid
LEFT JOIN userfield ON userfield
.userid=announcement.userid
LEFT JOIN avatar ON avatar
.avatarid=user.avatarid LEFT JOIN customavatar ON customavatar.userid=announcement.userid

//start user icon hack
LEFT JOIN iconavatar ON iconavatar.iconavatarid=user.iconavatarid LEFT JOIN customiconavatar ON customiconavatar.userid=announcement.userid
//end user icon hack
WHERE startdate<='1046592710' AND enddate>='1046592710' AND (announcement.forumid='20' OR announcement.forumid='19' OR announcement.forumid='-1'ORDER BY startdate DESC
mysql error
You have an error in your SQL syntax near '//start user icon hack
,iconavatar.iconavatarpath,NOT ISNULL(customiconavatar.i' 
at line 5

mysql error number
1064 

in showthread.php:
PHP Code:

Database error in vBulletin 2.2.9:

Invalid SQL
SELECT
post
.*,post.username AS postusername,post.userid AS userid,post.dateline AS dateline,post.ipaddress AS ip,user.*,userfield.*,icon.title as icontitle,icon.iconpath,
attachment.attachmentid,attachment.filename,attachment.visible AS attachmentvisible,attachment.counter
,avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline
//start user icon hack

//end user icon hack
,signature.signaturepath,NOT ISNULL(customsignature.signaturedata) AS hascustomsignature,customsignature.dateline AS signaturedateline
,signature.signaturepath,NOT ISNULL(customsignature.signaturedata) AS hascustomsignature,customsignature.dateline AS signaturedateline
FROM post
LEFT JOIN icon ON icon
.iconid=post.iconid
LEFT JOIN user ON user
.userid=post.userid
LEFT JOIN userfield ON userfield
.userid=user.userid
LEFT JOIN avatar ON avatar
.avatarid=user.avatarid
                       LEFT JOIN customavatar ON customavatar
.userid=user.userid
//start user icon hack

//end user icon hack
LEFT JOIN signature ON signature.signatureid=user.signatureid
                       LEFT JOIN customsignature ON customsignature
.userid=user.userid
LEFT JOIN attachment ON attachment
.attachmentid=post.attachmentid
WHERE post
.postid IN (0,21309,21310,21312,21315,21317,21365,21367,21375,21377)
ORDER BY dateline 

mysql error
You have an error in your SQL syntax near '//start user icon hack

//end user icon hack
,signature.signaturepath,NOT ISN' 
at line 6

mysql error number
1064 

and, in user.php:
PHP Code:

Database error in vBulletin Control Panel 2.2.9:

Invalid SQLSELECT user.*,FROM_UNIXTIME(joindate) AS joindate,FROM_UNIXTIME(lastvisit) AS lastvisit,FROM_UNIXTIME(lastactivity) AS lastactivity,FROM_UNIXTIME(lastpost) AS lastpost,
                               
avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,
                               
iconavatar.iconavatarpath,NOT ISNULL(customiconavatar.iconavatardata) AS hascustomiconavatar                               signature.signaturepath,NOT ISNULL(customsignature.signaturedata) AS hascustomsignature
                               FROM user
                               LEFT JOIN avatar ON avatar
.avatarid=user.avatarid
                               LEFT JOIN customavatar ON customavatar
.userid=user.userid
                               LEFT JOIN iconavatar ON iconavatar
.iconavatarid=user.iconavatarid
                               LEFT JOIN customiconavatar ON customiconavatar
.userid=user.userid
                               LEFT JOIN signature ON signature
.signatureid=user.signatureid
                               LEFT JOIN customsignature ON customsignature
.userid=user.userid
                               WHERE user
.userid=1
mysql error
You have an error in your SQL syntax near 'signature.signaturepath,NOT ISNULL(customsignature.signaturedata) AS hascustomsi' at line 3

mysql error number
1064 

I think these might have been caused because I tried to use // tags to add the comments around each area of code I edited. I think I did it wrong and it messed up the line breaks or something. :( Good times. lol :)


All times are GMT. The time now is 04:59 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.01043 seconds
  • Memory Usage 1,785KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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