php forum
php mysql forum
php mysql smarty
 
Topic Options
#116627 - 02/25/01 03:57 PM More Istant Gremlins
Rutto Offline
Member

Registered: 02/10/01
Posts: 182

   More Istant Gremlins to Del.icio.us Add to del.icio.us
  Digg More Istant Gremlins Digg it
Hey, this is the first time I do something like this... so if it's stupid please don't kick my ass :rolleyes:
Now, I will try to explain how to create more istant gremlins:

The files involved are 4 (Backup them):
- ubb_lib.cgi
- public_new_reply_form.pl (Gremlins in reply)
- public_new_topic_form.pl (Gremlins in new topic)
- public_pm_form.pl (Gremlins in private messages)

Open public_new_reply_form.pl and search for:
_____
<TD valign="top" align="left"><a href="javascript: x()" onClick="DoSmilie(' smile ');"><img width="15" height="15" src="$vars_config{NonCGIURL}/smile.gif" border="0" alt="Smile"></a>

_____
As you could notice, there is the code that will be filled in the message ' smile ' to obtain that image: smile.gif
All the lines after this one are the other gremlins, you just need to copy the code of one gremlin and change it with the smile you prefer...
An examle is: <a href="javascript: x()" onClick="DoSmilie(' cool ');"><img width="15" height="15" src="$vars_config{NonCGIURL}/cool.gif" border="0" alt="Cool"></a>
- After you have edited public_new_topic_form.pl, open both public_new_reply_form.pl
and public_pm_form.pl, search for the same lines of public_new_topic_form.pl and copy exacly the work you has done in public_new_topic_form.pl

Ok now we are close to the finish:
Open ubb_lib.cgi, search this line:
sub Smilies {

In this routine you will find a lot of lines like this:
$_[0] =~ s/ cool/ <IMG SRC="Cool.gif" border="0">/isg;

Copy this line and replace cool with the same name you used in the previous file ex. :love:
and the Cool.gif with ex. Love.gif

Ok, this is enought, new istant gremlins will appear for your messages !!!

Sorry if I don't explain well but English is not my home language...
For any problem ... I'm here ! wink

Bye
Rutto

Top


Top Posters Last 30 Days
AllenAyres 20
Gizmo 10
blaaskaak 2
S7ARBVCK 2
Iann128 1
Claus1 1
M4D 1
Who's Online
0 Registered (), 33 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Security Patch released for all 7.x versions
by AllenAyres
Yesterday at 08:00 PM
What do you use to edit the files
by AllenAyres
Yesterday at 07:54 PM
Team UBBDev Rides Again!
by AllenAyres
Yesterday at 07:32 PM
Here I am! Rock me like a Hurricane!
by AllenAyres
Yesterday at 07:20 PM
BeyondCompare v3.00
by AllenAyres
Yesterday at 07:16 PM
[7.3.1] add search to showmembers page
by AllenAyres
Yesterday at 07:13 PM
Noob - need help, or a reality check!
by Gizmo
09/04/08 03:21 AM
New Mods
[7.3.1] add search to showmembers page
by blaaskaak
Yesterday at 04:50 AM
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
[7.x] Generic Page Outside of forum directory
by
01/14/07 10:58 PM
Newest Members
veedubb8, twentyseven, Claus1, welcomeback1, Paug
13327 Registered Users

 

 

 
fusionbb message board php hacks