vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Need some help [postbit] (https://vborg.vbsupport.ru/showthread.php?t=50443)

Vile 03-19-2003 05:24 AM

Need some help [postbit]
 
Hi guys,

I searched the forums for this, but didn't have much luck..

Ok, my situation is, I would like to add an image in the postbit, but only for specific (contributing) members. I know editing the postbit template will let me add whatever, for all users, but how do I go about adding something like an image/text for only certain users in the postbit?

Thanks for your help. :)

mr e 03-19-2003 06:24 AM

that'll take hacking in functions.php

Vile 03-19-2003 06:29 AM

Quote:

Today at 08:24 AM mr e said this in Post #2
that'll take hacking in functions.php
Any idea where in functions.php I would need to make the change? (sorry, I'm not all that great with this stuff)

Thanks for your reply. :)

mr e 03-19-2003 06:45 AM

well, i'd say above this
PHP Code:

    // do posts from ignored users
    
if (($ignore[$post[userid]] and $post[userid] != 0)) {
        eval(
"\$retval = \"".gettemplate("postbit_ignore")."\";");
    } else {
        eval(
"\$retval = \"".gettemplate("postbit")."\";");
    }
    return 
$retval

then if you just put them in specific usergroup "contributers" or whatever then you could just do a if($bbuserinfo[usergroupid] == #) {$image = '<img src="blank.gif">';} else {$image = ''}; then put $image wherever you wanted in the postbit

Smoothie 03-19-2003 06:49 AM

there's a contributing member hack, right here in these forums... :) You can add an image to the postbit too... ;) Only shows for those that have donated.

Vile 03-19-2003 03:56 PM

Sounds good, thanks for your help guys :)

FlyingDutchman 03-19-2003 04:18 PM

logician's hack will do too ;)
you can use it to show a image (or any other html) to for example a specific usergroup only...
i can post a link if you want :D

Vile 03-19-2003 05:06 PM

Quote:

Today at 06:18 PM FlyingDutchman said this in Post #7
logician's hack will do too ;)
you can use it to show a image (or any other html) to for example a specific usergroup only...
i can post a link if you want :D

That would be appreciated :)
I had a look here:
https://vborg.vbsupport.ru/member.ph...fo&userid=2355

but wasnt sure which hack you were reffering to.


I remember trying the "Mark User As Contributer" hack a while back, but didnt have much luck with it.

I would like to give logician's a try though.


All times are GMT. The time now is 08:11 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.00965 seconds
  • Memory Usage 1,730KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete