Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Skins, Styles and Templates

Why not Register and remove some of the ads from vBulletin Setup
Post New Thread  Reply



#1   02-04-2008, 06:32 AM
dtommy79 will become famous soon enough Join Date: Jul 2007 Posts: 4
Help with postbit


Hi,

I have a theme called smartbrown installed.
I installed vbcredits and when I modify the postbit template the text "Kredit" is not in the small brown box as, for example the number of posts or location etc.

See picture:


How do I have to modify the code so the phrase "Kredit" would appear in the brown box?

Here is the code I have to add to the postbit:

PHP Code:
<if condition="$show['credits_post']">
                        <
div>
                            
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
                        </
div>
                    </if> 
Here is the code for the rest of the userdeatailes from the postbit template:

PHP Code:
<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                <if 
condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                
$template_hook[postbit_userinfo_left]
                
            </
td>
            <
td width="100%">&nbsp;</td>
            <
td valign="top" nowrap="nowrap">
                
                <
div class="smallfont">
                    <if 
condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                    <if 
condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                    <if 
condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                    <
div>
                        
$vbphrase[posts]: $post[posts]
                    </
div>

<if 
condition="$show['credits_post']">
                        <
div>
                            
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
                        </
div>
                    </if>
                    
$template_hook[postbit_userinfo_right_after_posts]
                    <if 
condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if> 
Tell me if you need something else.

Any help is appreciated.
Thank you
Quote   |  



#2   02-05-2008, 06:18 PM
Send a message via Yahoo to valdet valdet will become famous soon enough Join Date: Jan 2008 Posts: 91 Location: Kosova


It looks like you need to add the smallfont class around the conditional

Try this one.
Code:
<div class="smallfont">
<if condition="$show['credits_post']">
<div>
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
</div>
</if>
</div>
Good luck,
Val.
Quote   |  



#3   02-06-2008, 08:48 AM
Send a message via Yahoo to MaddenGods MaddenGods is a jewel in the roughMaddenGods is a jewel in the rough Join Date: Jan 2008 Posts: 625 Location: Ohio


try this instead:


<if condition="$show['credits_post']">
<div class="postbit">
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
</div>
</if>

I dont think you posted the correct postbit template from Smartbrown

Quote:
You'd actually want
Code:
<if condition="$show['credits_post']">
<div class="postbit">
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
</if>
</div>
To get the brown background behind it. Thats according to the default CSS properties of the skin i looked at on vb.org
p
[/quote]

Last edited by Brandon; 02-06-2008 at 08:57 AM.
Quote   |  



#4   02-08-2008, 10:25 AM
dtommy79 will become famous soon enough Join Date: Jul 2007 Posts: 4
Re: Help with postbit


Hi,

Thanks for the answer.
I tried the above solutions but none worked.
So what should I do?
Quote   |  



#5   02-08-2008, 01:33 PM
Send a message via Yahoo to MaddenGods MaddenGods is a jewel in the roughMaddenGods is a jewel in the rough Join Date: Jan 2008 Posts: 625 Location: Ohio
Re: Help with postbit


are you sure you're updating the right theme or your postbit_legacy template?

The code:

<if condition="$show['credits_post']">
<div class="postbit">
$vbphrase[credits]: <span id="cdt_$post[postid]_$post[userid]">$post[credits]</span> <if condition="$show['credits_donate']">[<a href="credits.php?$session[sessionurl]do=manage&amp;u=$post[userid]#donate">$vbphrase[donate]</a>]</if> <if condition="$show['credits_check']">[<a href="credits.php?$session[sessionurl]do=banking&amp;u=$post[userid]">$vbphrase[check]</a>]</if>
</div>
</if>

Should work
--------------------
David / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.
Check out my Webmaster Articles at the vBulletin Setup Blog! SEO Talk
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Skins, Styles and Templates


Thread Tools
Display Modes

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postbit Question ARKphoenix vBulletin Questions 2 09-25-2007 11:51 AM
Your Orkut Profile link in your postbit legacy radarhunter Released vBulletin Hack 0 06-23-2007 05:21 AM
Money Mod in ur postbit legacy (Vbplaza needed) radarhunter Released vBulletin Hack 7 06-23-2007 05:03 AM
Your Orkut link in your profile postbit radarhunter vBulletin Questions 0 06-22-2007 01:19 PM
Is There A Postbit, Threadbit, Xbit Guide? brandondrury vBulletin Programming & Coding 4 06-02-2007 02:43 PM


All times are GMT -6. The time now is 08:33 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory