Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-02-2010, 03:25 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Show Style in Postbit

Updated post: https://vborg.vbsupport.ru/showthrea...58#post1995758
Reply With Quote
  #2  
Old 03-02-2010, 10:15 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

take a look here is this what you want ?


you can take a look at my default style and other style i uploaded quickly


http://www.cg-hq.com/vb4/forum/
Reply With Quote
  #3  
Old 03-02-2010, 10:17 PM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mmoore5553 View Post
take a look here is this what you want ?


you can take a look at my default style and other style i uploaded quickly


http://www.cg-hq.com/vb4/forum/
Your using 4.0.1? You never heard about the XSS Exploit with 4.0.1? You should upgrade.


@OP there is a template only mod in 3.8 that should be easy to update.
Reply With Quote
  #4  
Old 03-02-2010, 10:27 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No i have been moving for past month and just now got pc online lol ..i guess i will update ...thanks for pointing out. It is a test board ... lol ... I would never put my real board on vb 4 hahhahah

he wanted that mod to work and it is working fine once you use the xml file and then just make this edit ...I did this real quick but only tested on my forum.

Here is the code used. I am unsure as I do not have an old board why the style was made a link but here is the code. You can put it in the appropriate place


Code:
<vb:if condition="$post['styleid'] != 0"><div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">{vb:raw post.styletitle}</a></div></vb:if>
Reply With Quote
  #5  
Old 03-02-2010, 10:30 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mmoore5553 View Post
take a look here is this what you want ?


you can take a look at my default style and other style i uploaded quickly


http://www.cg-hq.com/vb4/forum/
Yes, that is exactly what I'm looking for. But there seem to be a small flaw with your mod. It only works with the Black/Green style. When using default it says Style: $post[styletitle]


Quote:
Originally Posted by ChopSuey
@OP there is a template only mod in 3.8 that should be easy to update.
That sounds lovely, but I'm a bit shaky, at best, when it comes to coding so I still have the same problem :P
Reply With Quote
  #6  
Old 03-02-2010, 10:31 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops I forgot to check default . I will fix that here in a bit.

curious where is the template mod for vb 3.8
Reply With Quote
  #7  
Old 03-02-2010, 10:33 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds great mmoore5553! I can't wait

Btw, I need the mod to work based on the Quick Style Chooser

--------------- Added [DATE]1267577922[/DATE] at [TIME]1267577922[/TIME] ---------------

Quote:
Originally Posted by mmoore5553 View Post
Here is the code used. I am unsure as I do not have an old board why the style was made a link but here is the code. You can put it in the appropriate place

Code:
<vb:if condition="$post['styleid'] != 0"><div class="smallfont">Style: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">{vb:raw post.styletitle}</a></div></vb:if>
I've tried everything I know but I can't get it to show.

I'm using 4.0.2 PL1 if that makes any difference
Reply With Quote
  #8  
Old 03-02-2010, 11:10 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well I just looked at mod and it works fine ..default shows nothing at all. If you have a theme other than default then it will show it ...

I forgot to edit where i was testing. So just use the code above.

arch just PM me with what you have done and i will check it as it works on my forum there is something missing. Did you upload the xml file ? if you want add me to msn . Just PM me for that info
Reply With Quote
  #9  
Old 03-02-2010, 11:20 PM
archet1337's Avatar
archet1337 archet1337 is offline
 
Join Date: Sep 2009
Location: Norway
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks a lot for taking time to convert this mod, mmoore5553! PM me your paypal address
I played around with the code and figured out how to show if people are using default style as well.

Code:
<vb:if condition="$post['styleid'] != 0"><div class="eti_postbit">Layout: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">{vb:raw post.styletitle}</a></div>

<vb:else />

<div class="eti_postbit">Layout: <a href="{$GLOBALS[vbulletin]->scriptpath}&styleid=$post[styleid]">Light Blue</a></div></vb:if>

Only one more hurdle to overcome then.. How to make this work with quick style chooser?

As it is now it will show default style in postbit even though the user have changed using the qsc. Any advice on how to fix that?

I have added style buttons to the top of the forums, like the ones vb.org use and this little mod would be the icing on the cake
Reply With Quote
  #10  
Old 03-02-2010, 11:58 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem sorry just got home and had a look at it ...so you want it to work with quick chooser as in what ?
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:05 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.07103 seconds
  • Memory Usage 2,274KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_code
  • (4)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
  • (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_postinfo_query
  • fetch_postinfo
  • 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