vBulletin Modifications

Unparsing Html

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > General vBulletin Support

Reply
 
LinkBack Thread Tools
Old 12-17-2006, 11:06 AM   #1
vB Newbie
Join Date: Jun 2006
marksyzm is on a distinguished road

Question Unparsing Html

I've been trying to implement the userpages hack from vbulletin.org, but am unsure about how you remove html coding from a particular field... basically I just want to use bbcode only, instead of both bbcode and html which is how it's working at the moment.

The field I want to unparse is:

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12-18-2006, 07:07 AM   #2
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

so you mean the variable you want to unparse is $pagedata. What you need to do is include the bbcode function file, start a new instance of it, set the right options and then parse it, there is a tutorial on vbulletin.org if you look over there.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-18-2006, 07:21 AM   #3
vB Newbie
Join Date: Jun 2006
marksyzm is on a distinguished road

Default

Okay, the bbcode has already had that done, if you see below:

You must first be a registered member to view any code.
I'll have a look over there to see what I can include in this. Would this be of any use?

You must first be a registered member to view any code.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-18-2006, 07:26 AM   #4
vB Newbie
Join Date: Jun 2006
marksyzm is on a distinguished road

Default

Ah I see... change the first 1 to a 0 after

You must first be a registered member to view any code.
so its:

You must first be a registered member to view any code.
Dead easy




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-18-2006, 07:30 AM   #5
vB Newbie
Join Date: Jun 2006
marksyzm is on a distinguished road

Default

Thanks very much Roger, I couldn't have done it without you! ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12-18-2006, 08:18 AM   #6
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

and whoever wrote the tut :p




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tool: Templates as HTML Files SirAdrian General vBulletin Discussion 8 07-14-2007 04:04 PM
HTML Parseing PigFat General vBulletin Support 3 07-11-2006 09:39 AM
Add a send button to the HTML e-mail hack... Colonel Ingus vBulletin Modification Requests 1 06-27-2006 05:25 PM
Only Admin (and maybe Mods) can post HTML in threads? Thai vBulletin Modification Requests 2 07-17-2005 03:38 PM


All times are GMT -3. The time now is 08:02 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)