vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   vB Staff Titles (https://vborg.vbsupport.ru/showthread.php?t=93783)

Logikos 08-08-2005 07:26 PM

Quote:

Originally Posted by utw-Mephisto
SHAME on me :D :D

It happens :)

utw-Mephisto 08-08-2005 07:27 PM

On question though

Code:

// - Template Change -
// - You have to edit your postbit, or postbit_legacy template, which ever you use. -

How do I know which one I use ? :D :D

Logikos 08-08-2005 07:29 PM

Does your postbit look like vBulletin.org's, or like vBulletin.com's? Minus the colors.

If your postbit looks like vB.org then its postbit_legacy. If it looks like vB.com then its postbit. :) Diablo Player?

utw-Mephisto 08-08-2005 07:31 PM

Ok, chinese to me :)

I installed the default 3.5RC2 + VbAdvanced RC2 .. thats it ..

I just changed it in both, imported the product but in the Userprofile fields I cannot see the Staff Title settings like in your screenshot

Logikos 08-08-2005 07:33 PM

Quote:

Originally Posted by utw-Mephisto
Ok, chinese to me :)

I installed the default 3.5RC2 + VbAdvanced RC2 .. thats it ..

I just changed it in both, imported the product but in the Userprofile fields I cannot see the Staff Title settings like in your screenshot

if you did import the file, then go here:
Code:

http://www.yoursite.com/forum/admincp/user.php?do=modify&u=1
Replace with your URL: You will see the setting there.

utw-Mephisto 08-08-2005 07:36 PM

Nope :(

http://img323.imageshack.us/img323/9...tled0gb.th.jpg

Logikos 08-08-2005 07:38 PM

If you want, Create a test account that has super admin perrmissions and I can look at it (PM me the user/pass). If you uploaded the xml file, then i don't see why you would have a problem. I just upload my file from my zip here and it worked as expected. :)

utw-Mephisto 08-08-2005 07:38 PM

never mind, got it :D

Logikos 08-08-2005 07:39 PM

Glad you got! :)

utw-Mephisto 08-08-2005 07:39 PM

Big THX !!!

Pion 08-08-2005 08:23 PM

I did everything exactly like provided in the directions and nothing happened. I've added the staff title but it doesn't show in the postbit legacy.

Logikos 08-08-2005 08:29 PM

I see a phrase isn't being inserted. Minor bug that I will fix. I don't understand, if you did everything correct it will work. Please make sure that your plugins are on, and all hooks are active.

Pion 08-08-2005 08:49 PM

Nevermind, I'm a moron. I got it. I installed on 1 style but was viewing another. ;)

Logikos 08-08-2005 09:53 PM

Quote:

Originally Posted by Pion
Nevermind, I'm a moron. I got it. I installed on 1 style but was viewing another. ;)

No problem, glad you figured it out :)

vBintense 08-08-2005 09:56 PM

Thanks, one my staff members where asking for this back.

/me licks and drools on the install button.

Logikos 08-08-2005 11:34 PM

Quote:

Originally Posted by insane-topics
Thanks, one my staff members where asking for this back.

[high]* insane-topics licks and drools on the install button.[/high]

Hey now, you could possibly malfunction the install system like that.

[high]* Logikos hands insane-topics a bone instead. :p[/high]

vBintense 08-09-2005 12:20 AM

[high]* vBintense runs after the bone............
[/high]

Besides I think they water proofed the install system :)

Xplorer4x4 08-19-2005 07:10 AM

All this work to do that? No thanks. This can be done much easier by simply going to the user ranks and setting up a rank corresponding to that user group. For example type in Moderator as the rank name and apply it to the moderators user group. Same principal your tying to achieve (I believe)without the hustle.

All the same not tryign to bash the hack, as I like the concept just seems much easier to do it my way. ;)

Snake 08-25-2005 01:35 PM

Quote:

Originally Posted by Live Wire
To show the rank in your users profile

In template 'memberinfo' Find:
HTML Code:

<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>
Add Under:
HTML Code:

                                <if condition="$userinfo['isstaffrank']">
                                        <div class="smallfont">
<if condition="$userinfo['staffrank_opentag']">$userinfo[staffrank_opentag]</if>
                                                <if condition="$userinfo['staffrank']">$userinfo[staffrank]</if>
<if condition="$userinfo['staffrank_closetag']">$userinfo[staffrank_closetag]</if>
                                        </div>
                                </if>


Live when I place an image next to the staff title, I get this wierd error.

The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/mgsz/public_html/forums/includes/adminfunctions_template.php(3510) : eval()'d code on line 227

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

Logikos 08-25-2005 04:52 PM

@Snake:
Hmmm, thats strange. This is whats in my memberinfo template:
HTML Code:

<if condition="$userinfo['isstaffrank']">
        <div class="smallfont">
                <if condition="$userinfo['staffrank_opentag']">$userinfo[staffrank_opentag]</if>
                <if condition="$userinfo['staffrank']">$userinfo[staffrank]</if>
                <if condition="$userinfo['staffrank_closetag']">$userinfo[staffrank_closetag]</if>
        </div>
</if>

Is it possiable you have another condition inside that template that could be causeing this?

Snake 08-25-2005 06:11 PM

Well yeah I guess. I have inputted the <IMG> tags which causes that error. I think I'll have to add a slash somewhere but I am not sure where exactly.

Logikos 08-25-2005 06:46 PM

You add that condtion to the templates then In the staff feild you just add.


HTML Code:

<img border="0" src="your_path_to_the_image.gif" alt="" />

Snake 08-25-2005 07:44 PM

Ding ding ding!

Works now, thanks.

slank 09-12-2005 03:32 AM

cheers for this - installs

hostthebest 09-29-2005 01:25 AM

Can I use this with the later version also

Capricia 09-30-2005 11:22 AM

Great hack, thanks alot :)

*installed*

Btw it works perfectly with VB 3.5.0 Gold ;)

MissKalunji 10-01-2005 12:44 AM

is it possible to switch the title to an image?
Thanks

Logikos 10-01-2005 12:50 AM

Just put the HTML code in the box in the admincp. :)

dreck 10-01-2005 02:24 AM

Installed fine on 3.5 gold.

Thanks

*install*

MissKalunji 10-01-2005 04:56 AM

Quote:

Originally Posted by Live Wire
Just put the HTML code in the box in the admincp. :)

"doh" shoulda thought of that thx!

Pramodinfo 10-01-2005 06:37 PM

Wht to do if i want to have the same title to the whole group.
Like if there is are 150 VIP members & i want to give all of them a Title as VIP Member... how can i do it ?

MissKalunji 10-01-2005 09:04 PM

Dat doesnt work with gold?

MissKalunji 10-03-2005 02:14 PM

Quote:

Originally Posted by Live Wire
Just put the HTML code in the box in the admincp. :)

i looked and i dont know where im supposed to put it.....

ForeverForums 10-03-2005 04:20 PM

it would be cool to be able to place a small image for the staff title.

MissKalunji 10-06-2005 08:19 PM

Quote:

Originally Posted by Live Wire
Just put the HTML code in the box in the admincp. :)

n e oone???

wacodep 10-07-2005 03:23 AM

clicks *install*

Kila_Bite 10-07-2005 11:52 AM

Wow, great hack! Thanks a lot for this.

smokering 10-08-2005 02:16 AM

nice hack clicks install

wolfyman 10-08-2005 08:24 PM

Quote:

This hack will work for vBulletin Version 3.5.0 RC-1 and RC-2 ONLY!
not on gold?

MissKalunji 10-08-2005 10:39 PM

Quote:

Originally Posted by wolfyman
not on gold?

It does i have it installed just trying to figure out how to put an image instead of a title


All times are GMT. The time now is 04:18 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.01540 seconds
  • Memory Usage 1,802KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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