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
#36038 - 01/20/00 04:19 PM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
I got it worked! Just go into your smilie setting and set all the Smilies-Code. Everything should run fine now.

Whewwwwwwwwww!!!!!!!
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
#36039 - 01/20/00 04:38 PM Re: Smilie-settings control panel add-on
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
I've got problems with this as well... installed it and the control panel worked great, added new smilies and everything. The problem comes in when trying to post a message that it returns the "Document contains no data" message and the message is never posted!

Top
#36040 - 01/20/00 04:50 PM Re: Smilie-settings control panel add-on
Anonymous Offline
Member

Registered: 01/16/00
Posts: 108
Loc: San Jose, Ca 95111
why the page goes blank after posting? i want the 'thank you' message back.
_________________________
<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>

Top
#36041 - 01/20/00 05:10 PM Re: Smilie-settings control panel add-on
Dave Downin Offline
Junior Member

Registered: 01/11/00
Posts: 28
Loc: Laurel, MD, USA
Ok, here's the fix:

in ubb_library.pl, find:
Code:
code:


and add right after it:
Code:
code:


This change should be in *2* places... one in the Smilies subroutine and one in the ConvertSmilies subroutine. Gotta remember to escape those special characters!!!

Top
#36042 - 01/21/00 12:00 PM Re: Smilie-settings control panel add-on
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Found another problem:
When you use a smilie like :drunk:
the : d (without space) turns into runk

I didn't have this problem when I was adding smilies manual

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

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

Registered: 08/11/00
Posts: 182
Loc: yes
Dave Downin > Thanks for the fix! Guess I should've thought about that earlier Shouldn't we check for more special characters? Like "'][$| or isn't that necessary?

Menno > Probably just a matter of defining the :drunk: one above the : D one (w/out the space offcourse)

So is this hack working flawlessly for y'all now?

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

Registered: 08/11/00
Posts: 182
Loc: yes
Everything seems to working fine for me now. I also used the readSmilies function too create a pop-up smilies legend(since I am using version 5.39b) If anyone is interested in this hack, let me know, and i will document it.

Top
#36045 - 01/21/00 06:06 PM Re: Smilie-settings control panel add-on
yeah Offline
Junior Member

Registered: 01/21/00
Posts: 1
Loc: uwizone
When I edit msg I get [img] URL [/img]
instead of code like :whatever:
Why it doesn't convert?

Top
#36046 - 01/21/00 06:54 PM Re: Smilie-settings control panel add-on
ilya Offline
Junior Member

Registered: 06/03/00
Posts: 9
To yeah
This is how UBB was made originally.
It's not because of the hack.
_________________________
Hmmm. I used to have about 1200 posts.. Now i have one?

Top
#36047 - 01/21/00 07:04 PM Re: Smilie-settings control panel add-on
Armage Bedar Offline
Member

Registered: 01/03/00
Posts: 90
Loc: Richmond, VA, USA
This hack failed to work correctly - I used the latest text file download. Postings.cgi ran all the way through, but my posts looked like this:

Hello (repeat ad nauseum)

I tried shifting some of the code around, but frankly, I'm avoiding this hack until it's PERFECT.

ilya, can you please move this to Beta until all of the issues are worked out?

------------------
- Armage Bedar
Administrator, SW-RPG HoloNet Discussion Forums
Moderator, UltimateBB Code Hackers' Hideout
_________________________
- Armage Bedar
Administrator, SW-RPG HoloNet Discussion Forums
Moderator, UltimateBB Code Hackers' Hideout

Top
#36048 - 01/22/00 03:11 AM Re: Smilie-settings control panel add-on
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Quote:
quote:


And how would I go about doing that?



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

Top
#36049 - 01/22/00 10:55 AM Re: Smilie-settings control panel add-on
Menno Offline
Junior Member

Registered: 03/20/01
Posts: 200
Ok, sorry, last one wasn't a bug, my fault
But I think I've found a REAL bug now.
Namly: When you edit a message the smilie turns into :/) or ;/) and :/(
I hope you can fix this

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

Top
#36050 - 01/26/00 04:58 AM Re: Smilie-settings control panel add-on
Exstatica Offline
Member

Registered: 01/12/00
Posts: 120
Loc: Southern California
i would like to see a way i can use the current pop up smilie window to work with this hack, cause i use the hack and it is great but it doesn't update the new smilie legend.
_________________________
Music is the art of thinking with sound

Top
#36051 - 02/03/00 12:56 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Ok, I think I've fixed all those bugs! Check it out: http://ubbcodehacking.com/ubb/Forum3/HTML/000010.html

Top
#36052 - 02/14/00 01:42 PM Re: Smilie-settings control panel add-on
gilz Offline
Junior Member

Registered: 02/14/00
Posts: 6
Code:
code:


and add right after it:
Code:
code:


This change should be in *2* places... one in the Smilies subroutine and one in the ConvertSmilies subroutine. Gotta remember to escape those special characters!!![/b]<HR></BLOCKQUOTE>


Has this been updated in the current file or does this need to be added still?

Also, I can't find any mention of the sub VerifyAdmin in ubb_library.pl...could it be because of the private messages hack?

Thanks!


------------------
http://diamondtalk.com

P.S. I think I just figured it out. The instructions said ubb_library.pl but they meant ubb_library2.pl.
_________________________
http://diamondtalk.com

Top
#36053 - 02/14/00 03:11 PM Re: Smilie-settings control panel add-on
The Team Offline
Moderator

Registered: 08/11/00
Posts: 182
Loc: yes
Gilz, if you've read the post more carefully you'd notice that I've done an update on this hack...the lines don't need to be added anymore; Download the latest version and it should be allright....The sub verifyadmin should be sub verifyadmincp in your case...read the instructions more carefully..I've mentioned it..

I'm closing this one now...reply on the other thread: http://ubbcodehacking.com/ubb/Forum7/HTML/000050.html

Top
Page 1 of 2 1 2 >