php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#36018 - 01/19/00 12:47 PM Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Ok, here's what it does:

It'll create a new control panel area where you can create, alter and delete smilies on the fly!

Here are the instructions: http://feyenoordmb.virtualave.net/ubbhacks/smiliecp-instructions.txt

And here's the new smilie file (it's now called smilies.txt, but you gotta rename it to smilies.cgi) http://feyenoordmb.virtualave.net/ubbhacks/smilies.txt

I've tried to make the instruction as understandable as possible but due to version-differences and the fact that some people allready have installed custom smilies it may be somewhat difficult to follow. I hope I didn't forget something...
Anyway, read the instructions very carefully!

>>>EDIT<<<
BTW: Don't forget to chmod the smilies.cgi to 755!!!
<<<EDIT>>>

Top
#36019 - 01/19/00 12:51 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
All i gotta say is **** YEAH!!

Top
#36020 - 01/19/00 01:26 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I've done an update for the smilies.txt (I also changed it in the downloadable version)

find:

$SmilieDB = "SmilieDB.cgi";

and change to:

$SmilieDB = "$MembersPath/SmilieDB.cgi";

This is because most people don't have chmodded the cgi-bin dir to 777

Top
#36021 - 01/19/00 03:20 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
There seems to be some problems with the code. Looks like you will have to relook over it again. I cant find a line but I think it gos into edit.cgi. You may have to install it Mas*mind.

------------------
President and Webmaster of UBB Hackers Hideout.

ICQ: 33326211
AIM:SpazJCC
Email: ubbmaster@ubbcodehacking.com

Top
#36022 - 01/19/00 03:37 PM Re: Smilie-settings control panel add-on
mazmanr Offline
Junior Member

Registered: 03/20/01
Posts: 400
Mas*Mind - you have done it again...this is GREAT!!! It worked GREAT without any problems....amazing

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: mazmanr@home.com
ICQ: 19608225
AIM: Mazmanr

Top
#36023 - 01/19/00 03:38 PM Re: Smilie-settings control panel add-on
mazmanr Offline
Junior Member

Registered: 03/20/01
Posts: 400
UBBMASTER - it works perfectly!

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: mazmanr@home.com
ICQ: 19608225
AIM: Mazmanr

Top
#36024 - 01/19/00 07:19 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
me2be >> The $preppie thing is for the latest versions; Scroll down a bit in the manual and below that you'll find the instructions for other versions. Sorry for my poor explanation

Top
#36025 - 01/19/00 09:21 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Ok, I made some essential changes; Anyone who allready installed this hack should do the update; Anyone who will, just follow the instructions; they're updated.

If you've allready installed it:

- Redownload the smilies.txt, make the necessary changes (perl-path etc), rename to smilies.cgi and upload
- open up ubb_library.pl and search for $SmilieDB and replace with: $MembersPath/SmilieDB.cgi It should be there 2 times. Then search for $NonCGIURL/icons/$smiliepic and replace with $SmilieURL/$smiliepic This should also be there twice.

That's it smile

Top
#36026 - 01/19/00 10:17 PM Re: Smilie-settings control panel add-on
mazmanr Offline
Junior Member

Registered: 03/20/01
Posts: 400
Mas*Mind - I can not find $SmilieDB in ubb_library.pl

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: mazmanr@home.com
ICQ: 19608225
AIM: Mazmanr

Top
#36027 - 01/20/00 03:22 AM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
very well. thanks for the add on.
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
#36028 - 01/20/00 06:25 AM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I'm surprised with your positive reactions, because it just won't work on this board

Maybe someone of you wants to chew on this problem, cause I'll be away for 2 days...

The problem lies within the sub smilie and sub smilieconvert routines:

sub Smilies {
my $Smilie = shift;

open (FILE, "<$MembersPath/SmilieDB.cgi") or die ("Can't open file: SmilieDB.cgi!");
while(<FILE> ) {
push(@smilielines,$_);
}
close(FILE);

$Smilie =~ s/<;)/<; )/isg;
$Smilie =~ s/>;)/>; )/isg;

foreach $smilieline (@smilielines) {
chomp($smilieline);
($smiliecode, $smiliepic)=split(/|^|/,$smilieline);
$Smilie =~ s,$smiliecode,<img src="$SmilieURL/$smiliepic">,isg;
}
return($Smilie);
}

sub ConvertSmilies {
my $ConvertedSmilie = shift;

open (FILE, "<$MembersPath/SmilieDB.cgi") or die ("Can't open file: SmilieDB.cgi!");
while(<FILE> ) {
push(@smilielines,$_);
}
close(FILE);

$ConvertedSmilie =~ s/

/nrn/isg;
$ConvertedSmilie =~ s/
/n/isg;

foreach $smilieline (@smilielines) {
chomp($smilieline);
($smiliecode, $smiliepic)=split(/|^|/,$smilieline);
$ConvertedSmilie =~ s,<img src="$SmilieURL/$smiliepic">,$smiliecode,isg;
}
return($ConvertedSmilie);
}


The screen goes blank after posting...
The smilies are stored in this way:
<smiliecode>|^|<picturename>

Thanks in advance!

btw: For those that allready installed the hack; I changed the smilie and convertsmilie routines (ubb_library.pl). Those changes are absolutely necessery.

Top
#36029 - 01/20/00 11:15 AM Re: Smilie-settings control panel add-on
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Mass, you've done it again *Menno almoist drops dead of exitement*
DUTCH PEOPLE ROCK!!

and I could know, because I am one

------------------
Cougar's here, so have no fear
Webmaster of www.artbeast.de

Top
#36030 - 01/20/00 01:32 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
I am also experiencing the problem of the smilies not being converted...I will be looking through the coding and sorting things out right now, and will let you know when I have a fix...

Top
#36031 - 01/20/00 02:54 PM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
Me2Be, i got the same problem! his hack is killing me, i forgot to backup my files, and now i am dead meat!
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
#36032 - 01/20/00 03:09 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Naughty, naughty, naught anonymous...first rule. All you need to do is follow the hacking text backwards to fix it...

Top
#36033 - 01/20/00 03:29 PM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
working backward? not my style

anyway, i still want this hack so could the owner please fix the bug. Thanks!
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
#36034 - 01/20/00 03:37 PM Re: Smilie-settings control panel add-on
Sir Nikon Offline
Junior Member

Registered: 01/03/00
Posts: 400
Umm, I got it up but the way the page is setup is just awful. No background, the tables are all messed, no font face. And the "Smilie-Picture" and "Snapshot" cells are empty.

------------------
http://su.ffgamers.net

Joy! A hobby that only cost me $170.

Top
#36035 - 01/20/00 03:43 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Looks like I need to move this to the UBB Code Hacks Beta .

------------------
President and Webmaster of UBB Hackers Hideout.

ICQ: 33326211
AIM:SpazJCC
Email: ubbmaster@ubbcodehacking.com

Top
#36036 - 01/20/00 03:44 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Hmmm...the control panel looked and worked excellent for me. The problem was that the postings.cgi(which btw i am still looking through) did not work properly.

Top
#36037 - 01/20/00 03:49 PM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
Sir Nikon, everything is work fine. Excepted for when posting topics, give you errors!


I think there's a little problem with converting the message. I tried to post a topic with no message and get no errors (but told you that your message box is empty etc..) and when i post with some words, its gave me errors.
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
Page 1 of 2 1 2 >


Who's Online
2 registered (Gizmo, Pilgrim), 21 Guests and 12 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
12/04/08 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks