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

   Smilie-settings control panel add-on
 to Del.icio.us Add to del.icio.us
  Digg Smilie-settings control panel add-on
Digg it
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 >


Top Posters Last 30 Days
AllenAyres 18
Gizmo 12
sirdude 6
GEN 3
tackaberry 2
Philipp 2
willing 2
Who's Online
0 Registered (), 35 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Team UBBDev Rides Again!
by Gizmo
08/28/08 11:45 PM
Multiple Identity Detector
by MattUK
08/28/08 04:10 PM
[7.3.x] ubb.links
by AllenAyres
08/26/08 09:57 AM
Installing FlashChat with 7.3
by Gizmo
08/23/08 05:36 AM
[7.2.1] - Naked shoutbox
by Iann128
08/22/08 07:27 PM
Nice Ajax Chat
by M4D
08/21/08 10:02 PM
51-card NVIDIA folding rig cranks out 265,200 ppd
by AllenAyres
08/13/08 10:10 PM
New Mods
Installing FlashChat with 7.3
by Paug
08/23/08 12:14 AM
[7.x] AddThis - Social Networking
by Gizmo
08/01/08 01:30 AM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
[7.2.1] - Naked shoutbox
by sirdude
08/17/07 10:36 PM
Newest Members
welcomeback1, Paug, Tim Keating, anscers, Murphdog
13324 Registered Users

 

 

 
fusionbb message board php hacks