![]() |
Hello,
Wondring how to add the "instant smilies" and "instant vb code" in my forums when the user is posting a new topic? Like in "OpenTopic" from infopop.com Any help is appreciated :) |
You don't need a "hack" for this. You can do this in your templates. Simply edit the templates for the different forms and add javascript to add the different codes and smilies into the message when clicked on.
|
Thanks wluke :)
would you mind tel me what javascript code should I use? I am not that good in javascripts ! Thanks again |
Ok,I got the javascript for that
If I wanna add the script to the template "newthread" under the options.I need to add buttons and php code of course ! How can I do this without missing up my forums? Any help is greatfull |
Just stick it right in there and see what happens really. Backup the template to be safe and it something goes wrong, restore the backed up template right away.
|
Care to post the Javascript for the rest of us ? :)
Have you had any luck getting it working yet ? |
Ok,here is what I did:
First,I created a small table where I want my buttons and smili faces to be in the template "newthread",then,I added this javascript in the table: Code:
<a href="javascript: x()" onClick="DoSmilie(' :!) ');"><img width="15" height="15" src="YourSmilieURLHere" border="0" alt="smile"></a> NOTE: please take the exclamation marks off from the tags above --------- |
Then added this javascript at the top of the template right after the </title> tag :
Code:
<script language="JavaScript"><!-- NOTE: please take off the exclamation marks from the tags above ! ------------- Everything went fine so far.However,when I clicked on the smili face or any of the buttons it give me this script error : ---------------- Internet Explorer Script Error ------------------------- An error has occurred in the script on this page. Error: 'document.REPLIER.MESSAGE_BODY'is not an object ----------------- How can I get rid of this now?? :( |
Does some one have a url where I can see this.
Thanks, Brian |
Has anyone got this up and running yet ?
|
All times are GMT. The time now is 07:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|