Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Dec 2009, 19:31
ttlgDaveh's Avatar
ttlgDaveh ttlgDaveh is offline
 
Join Date: Dec 2003
Alternating Postbit Legacy Colours

On my current forum (running 3.8.4) I use the postbit legacy template with alternating colours. (post 1 is colour 1, post 2 is colour 2, post 3 is colour 1, post 4 is colour 2 etc) but the method I use for vB3 does not work for vB4, probably because of the need for variable registration.

Unfortunately PHP is not a language I am familiar with, but if somebody could tell me how to achieve alternating postbit colours I would be very grateful!
Reply With Quote
  #2  
Old 21 Jan 2010, 17:55
ttlgDaveh's Avatar
ttlgDaveh ttlgDaveh is offline
 
Join Date: Dec 2003
This is the code I am using under vB3.8.4. It goes into postbit_legacy.

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

Reply With Quote
  #3  
Old 21 Jan 2010, 17:57
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Well, if's are done differently in vb4 - <vb:if condition=""> and <vb: else /> and </vb:if> . Have you tried it with the new syntax?
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #4  
Old 21 Jan 2010, 18:07
ttlgDaveh's Avatar
ttlgDaveh ttlgDaveh is offline
 
Join Date: Dec 2003
Yes I have.

The top of my postbit legacy template looks like this


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

The HTML that is output is
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thanks for your reply

--------------- Added 21 Jan 2010 at 18:37 ---------------

Ok, solved it.

Remove the postbit legacy code and replace with a plugin in postbit_display_start with this

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

And the top of postbit legacy becomes

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


Last edited by ttlgDaveh; 21 Jan 2010 at 18:37. Reason: Auto-Merged DoublePost
Reply With Quote
  #5  
Old 19 Jul 2011, 06:43
Sean James's Avatar
Sean James Sean James is offline
 
Join Date: Apr 2004
Location: Sydney, Australia
Real name: Sean James
Having problems getting this code to work in 4.1.4
__________________
www.bluepearl-skins.com - Twitter
Professional Forum Skins
Reply With Quote
  #6  
Old 19 Jul 2011, 18:26
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Then post your *exact* code so we can see it and try it on our own test sites.
__________________
Former vBulletin.org Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Email to Friend, Print Version, Subscribe Thread in Postbit/Postbit Legacy Neutral Singh vBulletin 3.8 Template Modifications 29 03 Sep 2009 08:53



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

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 22:44.

Layout Options | Width: Wide Color: