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,359
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,359
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 10: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,359
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,359
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 10: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,367
Likes: 126
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,367
Likes: 126
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
Profile avatar storage settings
by SenecaFlyer - 12/05/2024 1:24 PM
Not allowing attachment over 2m
by ehill - 12/03/2024 3:16 PM
New Admin Here
by SenecaFlyer - 12/02/2024 4:14 PM
Who's Online Now
2 members (Ruben, SenecaFlyer), 929 guests, and 67 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.1
(Snapshot build 20240918)