Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
What style are we all using? Details »
What style are we all using?
Mod Version: 1.00, by Gary King (Member) Gary King is offline
Developer Last Online: Jun 2020 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 86
Released: 28 Mar 2004 Last Update: Never Downloads: 7
Not Supported  

NOTE: Make sure all your styles have different display orders (only if they are in the same grouping). For instance, don't have 2 styles each with the display order of '1' otherwise this hack will just show 'Style: ' and no style shown.

This hack will show each users current selected style when viewing a post.
If you want to see how this looks, take a look at the screenshot attached.

The style system is a little more complex than the vBulletin 2 one, but it's still pretty simple and straightforward.

My apologies if this has already been released! I must also note that all of this code is original, meaning I made it all myself, I didn't look at someone else's code if anyone was wondering, so that we don't play the 'blame game' later on.

NOTE: For those who are wondering, this hack adds NO EXTRA QUERIES to your pages! Meaning the load and processing time are about the same as usual, they don't change much

Okay anyhow, here we go:

Instructions

Open includes/functions_showthread.php and find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above, add:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above add
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Open the postbit template (or postbit_legacy if you're using old-style postbits) and find
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Above, add
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Now add the following phrase:

Phrase Type: GLOBAL

Title: not_specified
Text: not specified

Title: style
Text: Style

All done!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	postbit_style_chosen.gif
Views:	882
Size:	1.6 KB
ID:	17639   Click image for larger version

Name:	postbit_style_unspecified.gif
Views:	731
Size:	2.1 KB
ID:	17640  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 28 Mar 2004, 17:41
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Alright first install. . . I love this hack!

Thanks!!
Reply With Quote
  #3  
Old 28 Mar 2004, 18:40
DarkJediKiller DarkJediKiller is offline
 
Join Date: Jan 2004
Looks good. Excellent job ^_^
Reply With Quote
  #4  
Old 28 Mar 2004, 19:32
Mr. Brian's Avatar
Mr. Brian Mr. Brian is offline
 
Join Date: Jan 2003
Real name: Brian
Well done!

BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now.

thanks
__________________
~ Brian
My Blog: www.MrBrian.me
Ultimate Soccer Forum www.WeTalkSoccer.com
URL Shortener service with custom link keywords: www.GoLink.US
Reply With Quote
  #5  
Old 28 Mar 2004, 19:46
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Ok It does not work with childstyles though How to do this?
Reply With Quote
  #6  
Old 28 Mar 2004, 21:53
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
Reply With Quote
  #7  
Old 28 Mar 2004, 22:39
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by ryancooper
strange i did everything and checked it twice but only get a ":" where it is suposed to go?
You need the phrases to add.
Reply With Quote
  #8  
Old 28 Mar 2004, 22:39
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by NuclioN
Ok It does not work with childstyles though How to do this?
It works for me using child styles Show me a screenshot of the style manager so I can see all your styles and childs, etc.
Reply With Quote
  #9  
Old 28 Mar 2004, 22:44
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Originally Posted by Gary W
You need the phrases to add.
The phrase is definatly there. jsut tryed to add it again and got There is already a phrase named 'not_specified'. You may not create duplicate names

there is only 1 phrase correct?

Any other ideas?
Reply With Quote
  #10  
Old 28 Mar 2004, 22:53
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Originally Posted by Gary W
It works for me using child styles Show me a screenshot of the style manager so I can see all your styles and childs, etc.
Ok
Attached Images
File Type: jpg Snap1.jpg (50.5 KB, 340 views)
Reply With Quote
  #11  
Old 28 Mar 2004, 22:55
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Real name: Stefan Kaeser
Originally Posted by Matthew Lam
Well done!

BTW, is there any way that could be able to made that as a link? Whereby user can click on it ? Exactly like what Vb.org having now.

thanks
vb.org is using the quick and dirty way, like i call it.
the Style part is not generated, but it's a big if condition test in postbit, (as it was done during the Beta when we didn't want to hack where not needed)
Reply With Quote
  #12  
Old 28 Mar 2004, 23:02
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Originally Posted by ryancooper
The phrase is definatly there. jsut tryed to add it again and got There is already a phrase named 'not_specified'. You may not create duplicate names

there is only 1 phrase correct?

Any other ideas?
Thanks for bringing this to my attention. I fixed it now, for upgrading, just replace global $stylechoosercache;

with global $stylechoosercache, $vbphrase;
Reply With Quote
  #13  
Old 28 Mar 2004, 23:29
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Originally Posted by Gary W
Thanks for bringing this to my attention. I fixed it now, for upgrading, just replace global $stylechoosercache;

with global $stylechoosercache, $vbphrase;
Oh good so i wasn't going nutz!! LOL Thanks for a great hack!

Updated but still get teh same thing??

Last edited by ryancooper; 28 Mar 2004 at 23:33.
Reply With Quote
  #14  
Old 28 Mar 2004, 23:58
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Yes the same here. Or you see a : (when a child style whas chosen) or the phrase '(not_specified)' but if they choose a master style it's correct displayed.
Reply With Quote
  #15  
Old 29 Mar 2004, 00:43
Gary King's Avatar
Gary King Gary King is offline
 
Join Date: Jan 2002
Sorry about that guys

Add the following phrase:

Title: style
Text: Style
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 10:59.

Layout Options | Width: Wide Color: