Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Icons and Store integration Details »»
User Icons and Store integration
Version: 1.00, by Dark Jim Dark Jim is offline
Developer Last Online: May 2007 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 02-15-2003 Last Update: Never Installs: 16
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 02-19-2003, 11:25 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice nice
Reply With Quote
  #3  
Old 02-19-2003, 11:41 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 03-01-2003, 11:33 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 03-01-2003, 11:44 PM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope, this does not need updating.
Reply With Quote
  #6  
Old 03-02-2003, 03:58 AM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 03-02-2003, 07:56 AM
Serge's Avatar
Serge Serge is offline
 
Join Date: Jan 2002
Location: The Matrix
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 03-02-2003, 09:50 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not put this in with your User Icon hack? Why a separate thread?
Reply With Quote
  #9  
Old 03-02-2003, 10:20 AM
Dark Jim's Avatar
Dark Jim Dark Jim is offline
 
Join Date: Apr 2002
Location: Netherlands
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 03-02-2003, 07:59 PM
007's Avatar
007 007 is offline
 
Join Date: Jan 2003
Location: United States
Posts: 872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:58 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.04196 seconds
  • Memory Usage 2,338KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete