Welcome, Guest. Please Login or Register.
September 28, 2024, 01:35:09 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  ubbc.js « previous next »
Pages: [1] Reply Ignore Print
Author Topic: ubbc.js  (Read 797 times)
Hélène
Noobie
*
Posts: 1


I'm a llama!

ubbc.js
« on: January 09, 2002, 07:14:14 AM »
Reply with quote



i have create a new function in ubbc.js :

function image() {
    AddTxt1="[imge]YaBBImages/image.gif[/imge]";
    AddTxt2="nameoftheimage";
    AddText(AddTxt1);
    AddText(AddTxt2);
   }

i like this function work kind  like the cookies one  on the board , the image is display on the post page like the cookies one and when you click on it the message window show the text 'nameoftheimage' but when you prewiew you post in the prewiew wiewer on the top of the page this is the image that is shown [imge]YaBBImages/image.gif[/imge] , and in the final post too ....
I don't know if it is possible , for now i had add <a href="javascript:image()"><img src="$imagesdir/image.gif" align=bottom alt="imagename " border="0"></a> on post.php  , but i dont know how to make my fonction display AddTxt1 on the preview and the final post and AddTxt2 on the message box ....

If someone has an idea or can help me , i will be very greatfull !!!!

helene  
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  ubbc.js « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.020 seconds with 21 queries.