Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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...[Linked Image]
Anyway, read the instructions very carefully!

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

Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
All i gotta say is **** YEAH!!

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Joined: Mar 2001
Posts: 37
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 37
Mas*Mind - you have done it again...this is GREAT!!! It worked GREAT without any problems....amazing [Linked Image]

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr

Sponsored Links
Joined: Mar 2001
Posts: 37
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 37
UBBMASTER - it works perfectly!

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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 [Linked Image]

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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

Joined: Mar 2001
Posts: 37
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 37
Mas*Mind - I can not find $SmilieDB in ubb_library.pl [Linked Image]

------------------
Moderator Of The "CHIT CHAT" Forum
E-Mail: [email protected]
ICQ: 19608225
AIM: Mazmanr

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
very well. thanks for the add on.


<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>
Sponsored Links
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
I'm surprised with your positive reactions, because it just won't work on this board [Linked Image]

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( ) {
push(@smilielines,$_);
}
close(FILE);

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

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

sub ConvertSmilies {
my $ConvertedSmilie = shift;

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

$ConvertedSmilie =~ s/

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

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


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

Thanks in advance! [Linked Image]

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

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
Mass, you've done it again *Menno almoist drops dead of exitement*
DUTCH PEOPLE ROCK!!

and I could know, because I am one [Linked Image]

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

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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...

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
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>
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Naughty, naughty, naught anonymous...first rule. All you need to do is follow the hacking text backwards to fix it...

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
working backward? not my style [Linked Image]

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>
Joined: Jan 2000
Posts: 47
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 47
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.

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Looks like I need to move this to the UBB Code Hacks Beta [Linked Image].

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

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

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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.

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
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>
Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
I got it worked! Just go into your smilie setting and set all the Smilies-Code. Everything should run fine now. [Linked Image]

Whewwwwwwwwww!!!!!!!


<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
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!

Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
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>
Joined: Jan 2000
Posts: 68
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 68
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!!!

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
Found another problem:
When you use a smilie like :drunk:
the : d (without space) turns into [Linked Image]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

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Dave Downin > Thanks for the fix! Guess I should've thought about that earlier [Linked Image] 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?

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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.

Joined: Jan 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Jan 2000
Posts: 1
When I edit msg I get [img] URL [/img]
instead of code like :whatever:
Why it doesn't convert?

Joined: Jun 2000
Posts: 263
Junior Member
Junior Member
Offline
Joined: Jun 2000
Posts: 263
To yeah
This is how UBB was made originally.
It's not because of the hack.

Joined: Jan 2000
Posts: 18
Member
Member
Offline
Joined: Jan 2000
Posts: 18
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:

[Linked Image]H[Linked Image]e[Linked Image]l[Linked Image]l[Linked Image]o[Linked Image] (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

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
Quote
quote:
And how would I go about doing that?



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

Joined: Mar 2001
Posts: 69
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 69
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 [Linked Image] smilie turns into :/) or ;/) and :/(
I hope you can fix this

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

Joined: Jan 2000
Posts: 96
Member
Member
Offline
Joined: Jan 2000
Posts: 96
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
Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
Ok, I think I've fixed all those bugs! Check it out: http://ubbcodehacking.com/ubb/Forum3/HTML/000010.html

Joined: Feb 2000
Posts: 1
Junior Member
Junior Member
Offline
Joined: Feb 2000
Posts: 1
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]



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.

Joined: Aug 2000
Posts: 3,590
Moderator
Moderator
Offline
Joined: Aug 2000
Posts: 3,590
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


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)