Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Littlebit Littlebit is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 11-04-2001 Last Update: Never Installs: 0
 
No support by the author.

I added the modify avatarbit taken template and changes to version 2.03...I just upgraded to 2.20 and need to make some modifications to have the avatars taken option work with the new registration pick avatar option ( was glad to see that in the update!). Could someone give me a hand? I still have the modify avatarbit taken template and I made the old change in the member.php already...hope it was okay to do it in the new ver.2.20 member.php.
:surprised

Show Your Support

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

Comments
  #2  
Old 11-05-2001, 03:24 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey hey, where is this hack, i saw it now i can find it..
Reply With Quote
  #3  
Old 11-06-2001, 03:49 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This was thanks to Firefly and it was for version 2.03
Quote:
In member.php, replace this code:
code:
------------------------------------------------------------------------
eval("\$avatarlist .= \"".gettemplate("modifyavatarbit")."\";");[/php]
with this:
[code] if ($istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatarid'")) {
eval("\$avatarlist .= \"".gettemplate("modifyavatarbit_taken")."\";") ;
} else {
eval("\$avatarlist .= \"".gettemplate("modifyavatarbit")."\";");
}
------------------------------------------------------------------------
Now create a new template, name it modifyavatarbit_taken, and use this:
code:
------------------------------------------------------------------------
<td bgcolor="#13486D" valign="bottom" align="center"><normalfont>
Taken! <img src="$avatar[avatarpath]">
<br>$avatar[title]</normalfont></td>
------------------------------------------------------------------------
I have made these same changes in version 2.20, just need some help modifying the new avatar additions to 2.20 as well.



Reply With Quote
  #4  
Old 11-06-2001, 04:01 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Littlebit, can you maybe post the URL to your forum so I can see the new system and learn it?
As we don't offer our own avatars here, and I don't have any other forum, I have no idea how it looks like / works.
You can PM me if you wish.
Reply With Quote
  #5  
Old 11-06-2001, 04:52 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this.

In register.php, replace this:
Code:
        if (!$avatar['title']) {
		  $avatar['title'] = $avatar['avatarpath'];
		  if (strstr($avatar['title'], '/')) {
		    $avatar['title'] = substr( strrchr($avatar['title'], '/') , 1);
		  }
		  $avatar['title'] = str_replace('_', ' ', $avatar[title]);
		  $dotpos = strrpos($avatar[title], '.');
		  $avatar[title] =  substr($avatar[title], 0, $dotpos);
        }
        eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";");
with this:
Code:
        if (!$istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatar[avatarid]'")) { 
          if (!$avatar['title']) {
		    $avatar['title'] = $avatar['avatarpath'];
		    if (strstr($avatar['title'], '/')) {
		      $avatar['title'] = substr( strrchr($avatar['title'], '/') , 1);
		    }
		    $avatar['title'] = str_replace('_', ' ', $avatar[title]);
		    $dotpos = strrpos($avatar[title], '.');
		    $avatar[title] =  substr($avatar[title], 0, $dotpos);
          }
          eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";");
        }
this should work.
Reply With Quote
  #6  
Old 11-06-2001, 04:59 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so umm... which code should i use?
Reply With Quote
  #7  
Old 11-06-2001, 05:07 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly,
I just uploaded changes to the register.php. Opps..I got this:
Parse error: parse error in register.php on line 659
Reply With Quote
  #8  
Old 11-06-2001, 05:10 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Littlebit, I'm getting a parse error when trying to go to register.php.
Are you sure you did everything correctly?

neo, the last code is for us in register.php, to hide taken avatars.
What Littlebit posted above is for member.php.
Reply With Quote
  #9  
Old 11-06-2001, 05:14 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want you can send me your register.php attached in an e-mail (firefly@poolie.net) and I'll get it taken care of.
Reply With Quote
  #10  
Old 11-06-2001, 05:17 PM
Littlebit's Avatar
Littlebit Littlebit is offline
 
Join Date: Nov 2001
Posts: 313
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did I miss a { or something maybe? I copied a few extra lines for you to see also..here's my code:

if (!$istaken=$DB_site->query_first("SELECT userid FROM user WHERE avatarid='$avatar[avatarid]'")) {
if (!$avatar['title']) {
$avatar['title'] = $avatar['avatarpath'];
if (strstr($avatar['title'], '/')) {
$avatar['title'] = substr( strrchr($avatar['title'], '/') , 1);
}
$avatar['title'] = str_replace('_', ' ', $avatar[title]);
$dotpos = strrpos($avatar[title], '.');
$avatar[title] = substr($avatar[title], 0, $dotpos);
}
eval("\$avatarbits .= \"".gettemplate("register_avatarbit")."\";");
}
eval("\$avatarbit = \"".gettemplate("register_avatar")."\";");
}
}

if ($who=="adult") {
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 11:55 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.04173 seconds
  • Memory Usage 2,298KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (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
  • (2)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