Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 04 Mar 2017, 10:16
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is online now
 
Join Date: Aug 2013
Real name: Ryan
If bbcode exists in post show something on showthread

I am trying to show a section on the showthread page only if a specific bbcode was used, is there any way to accomplish this?
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #2  
Old 04 Mar 2017, 16:41
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
Can't you just check the post contents before it's parsed by the BBCode parser? Use the strpos function to check for "[BBCODE".
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #3  
Old 04 Mar 2017, 18:31
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is online now
 
Join Date: Aug 2013
Real name: Ryan
got to thinking on this, first thing that pops into my head is something like:


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

the problem with that though is I cant quite get the results I'm looking for, see if the post contains the bbcode, I want to not show the content of the bbcode in the post tab (there will be tabbed sections) it is still within the post, but in its own tab

so say the tabs are MAIN POST, BBCODE1, BBCODE2

so bbcode1 and 2 content would only show within the tabbed page, I'm over complicating it...

I may have to stick to the original way I was doing this, and not use it as a bbcode.
__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
  #4  
Old 04 Mar 2017, 23:18
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Real name: Paul M
Why assign it to $var ?

Just use

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

(note the vb standard is { and } on their own lines).
__________________
Former vBulletin.org Staff Member


Cable Forum
Please do not PM me about custom work - I no longer undertake any.
Note: I will not answer support questions via e-mail or PM - please use the relevant thread or forum.
Reply With Quote
  #5  
Old 05 Mar 2017, 02:18
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is online now
 
Join Date: Aug 2013
Real name: Ryan
That works a lot nicer but still doesn't allow me to quite get the end result I'm looking for.

As for the {

Just my typing style


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

__________________
Sorry been away so long, new baby, got married, got into GM, just got to the point I can resume developing.
I'm working on a bunch of products, some free, some paid, and will release them all at once.
Dirt RIF CustUmz
Reply With Quote
Reply



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 00:46.

Layout Options | Width: Wide Color: