Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
I want my PM HTML enabled , is it possible ?
What scripts should I modified ?

Is it function doPreview() of ubb_jslib.js ?
How should I modify it ?


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
You should edit somewhere in /scripts/sendmessage.inc.php

Code
	$Message = $html -> do_markup($Message,"post","markup");

At first 5 second look, somewhere over there look should be the point to change something. And have a look in /scripts/addpost.inc.php to see how it normally would handle a html markup.

Last edited by blaaskaak; 09/28/2007 11:06 AM.

[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
well , I think PM is not related to addpost.inc.php.
I think it is related with doPreview() in ubb_jslib.js .


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
No, addpost.inc.php is not related. But you can take a sneak peak in there to see how it handles forum posts with html markup.

You have to change it somewhere in /scripts/sendmessage.inc.php (I think, didn't have a really good look) since that is the script that will actually put your PM in the database.

As for more details, I suggest opening up a topic over at ubbdev, which covers this kind of changing the ubb core code in more depth.

Last edited by blaaskaak; 09/28/2007 11:28 AM.

[Linked Image from siemons.org]
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
Hi , this is the most important function my site required.
If not solved , I have to stay with UBB6.5.
Can anybody help me , very thanks....


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
Generally UBBCentral isn't for assisting you in modifying your forums; that's what UBBDev was created for (as making modifications to your forums can cause problems that are not in the base code)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jun 2006
Posts: 215
enthusiast
enthusiast
Joined: Jun 2006
Posts: 215
Hello , sorry to bother...
But ... is there any progress ?
This issue is very important to my site...
(If not solved , I cannot upgrade to UBB7 )

I tried to hack into ubb_js , but I am totally unfamiliar with javascript , I don't know what to do. cry


English is not my native language. I try my best to express my thought precisely. I hope you understand what I mean. If any misunderstanding results from culture gaps, I apologize first.
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Your best bet for extended help on this is to check over at ubbdev.com. That's the official modification site for code/template customizations. You'll find a modification forum that you can post in.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
2 members (Geoff, 1 invisible), 692 guests, and 171 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)