Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-10-2003, 08:06 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this also effects users signature images if a user has an [img[ code in there sig..........
Reply With Quote
  #12  
Old 11-10-2003, 08:28 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i modded it a bit to make the image a link to teh register page if u r interested ?

$bbcode = preg_replace("|\[img\](.*)\[/img\]|i", "<a href=\"http://www.url.com/forums/register.php?s=&action=signup\"><img src=\"http://www.url.com/forums/images/registerpic.jpg\" border=\"0\" alt=\"\"></a>", $bbcode);
Reply With Quote
  #13  
Old 11-11-2003, 12:31 AM
atomic fireball's Avatar
atomic fireball atomic fireball is offline
 
Join Date: Apr 2003
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Let me apply this new little tweak. Very good idea.

Lesane and corsacrazy, thanks again for your assistance with this!
Reply With Quote
  #14  
Old 11-11-2003, 12:34 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all credit goes to the L man and ofcourse atomic for the idea
Reply With Quote
  #15  
Old 11-11-2003, 06:37 PM
atomic fireball's Avatar
atomic fireball atomic fireball is offline
 
Join Date: Apr 2003
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone is intersted, I created a simple quick and dirty "You'll need to register" graphic and have attached it to this post. (I just used the generic vBulletin colors/fonts, so it's not flashy, but it'll do the job. It includes the corsacrazy mod, telling users they can click the image to register.)

Lesane, would it be a LOT more work to get this hack selectable per forum? Or perhaps a line of code that would exclude a certain forum(s) from this IMG hack? (Perhaps the admin could hard code the forum IDs they want to include for this into the hack, etc? Or vice-versa, one could exclude a particular forum from this IMG tag behavior?)

Its not crucial, but if it's not too difficult, it would be a nice addition.

Thanks again to Lesane for the PHP work and corsacrazy for the mod!
Attached Images
File Type: gif youllneedtoregister.gif (14.2 KB, 0 views)
Reply With Quote
  #16  
Old 11-11-2003, 07:19 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here tis my graffic
Attached Images
File Type: jpg registerpic.jpg (37.3 KB, 0 views)
Reply With Quote
  #17  
Old 11-11-2003, 07:25 PM
atomic fireball's Avatar
atomic fireball atomic fireball is offline
 
Join Date: Apr 2003
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey, no fair!! Your graphic is way better than mine!
Reply With Quote
  #18  
Old 11-11-2003, 09:07 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol i also hav a swf flah move telin people to register i may incorportae that into it
Reply With Quote
  #19  
Old 11-12-2003, 12:57 AM
atomic fireball's Avatar
atomic fireball atomic fireball is offline
 
Join Date: Apr 2003
Location: California
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just so this question doesn't get lost from the first page: Lesane, would it be a LOT more work to get this hack selectable per forum? Or perhaps a line of code that would exclude a certain forum(s) from this IMG hack? (Perhaps the admin could hard code the forum IDs they want to include for this into the hack, etc? Or vice-versa, one could exclude a particular forum from this IMG tag behavior?)
Reply With Quote
  #20  
Old 11-12-2003, 10:40 AM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by atomic fireball
If anyone is intersted, I created a simple quick and dirty "You'll need to register" graphic and have attached it to this post. (I just used the generic vBulletin colors/fonts, so it's not flashy, but it'll do the job. It includes the corsacrazy mod, telling users they can click the image to register.)

Lesane, would it be a LOT more work to get this hack selectable per forum? Or perhaps a line of code that would exclude a certain forum(s) from this IMG hack? (Perhaps the admin could hard code the forum IDs they want to include for this into the hack, etc? Or vice-versa, one could exclude a particular forum from this IMG tag behavior?)

Its not crucial, but if it's not too difficult, it would be a nice addition.

Thanks again to Lesane for the PHP work and corsacrazy for the mod!
Nice image, will use it once i install it.

It's not really that hard, open admin/functions.php and find:

Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode);
Change that line into:

Code:
return bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid);
Then find:

Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode)
Change that line into:

Code:
function bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmilies,$dobbcode,$forumid)
Last one, find:

Code:
if($bbuserinfo[userid]==0) {
Change that line into:

Code:
if($bbuserinfo[userid]==0 AND $forumid != X) {
Where X is the forumid wich you want to exclude. It will display the register now image on signatures.
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 02:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06135 seconds
  • Memory Usage 2,280KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)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
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete