vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vba CMPS: Smilie Creator (https://vborg.vbsupport.ru/showthread.php?t=68062)

Mitsuaki 10-04-2004 11:50 AM

I have installed this hack.... and well it looks great... just doesnt work... all i get is a cute little red x where the created smilie should be... i dont even get the "your new smilie will appear here" bit before you start... just a red x

KW802 10-04-2004 12:12 PM

Quote:

Originally Posted by Mitsuaki
I have installed this hack.... and well it looks great... just doesnt work... all i get is a cute little red x where the created smilie should be... i dont even get the "your new smilie will appear here" bit before you start... just a red x

Mitsuaki,

Have a URL I can check out? What version of PHP are you running and on Linux or windows?

Kevin

Mitsuaki 10-04-2004 12:48 PM

PHP Ver 4.3.9.. On Linux server
I send you PM with URL in

KW802 10-04-2004 01:01 PM

Quote:

Originally Posted by Mitsuaki
PHP Ver 4.3.9.. On Linux server
I send you PM with URL in

I'm replying via PM with an error message that I'm getting....

Mitsuaki 10-04-2004 02:07 PM

I take it there is no way to fix then as u have not responded???

KW802 10-04-2004 02:53 PM

Quote:

Originally Posted by Mitsuaki
I take it there is no way to fix then as u have not responded???

:ermm:

I'm at work right now (it's 11:51AM EDT) and as such can't really experiment that much right now to see what's going on with your server. When I get home I can send you a small PHP file to create a PNG file on the fly to rule out whether it's the server settings or this particular hack and we can go from there. I know that your server is capable of producing JPG files using GD so it's just a matter of figuring out if your server has issues with PNG files or this particular PHP script and if turns out to be this script then it's just a matter of seeing if a solution can be found.

Mitsuaki 10-04-2004 07:55 PM

Quote:

Originally Posted by KW802
:ermm:

I'm at work right now (it's 11:51AM EDT) and as such can't really experiment that much right now to see what's going on with your server. When I get home I can send you a small PHP file to create a PNG file on the fly to rule out whether it's the server settings or this particular hack and we can go from there. I know that your server is capable of producing JPG files using GD so it's just a matter of figuring out if your server has issues with PNG files or this particular PHP script and if turns out to be this script then it's just a matter of seeing if a solution can be found.

oh ok sorry :surprised: thankyou for all your help

KW802 10-05-2004 01:52 PM

Quote:

Originally Posted by Mitsuaki
oh ok sorry :surprised: thankyou for all your help

Mitsuaki,

Would you mind an experiment? Attached is a version of the script that will create the new image as a JPEG instead of a PNG. If this version works for you then we know that the problem is with your server handling PNG images. If this version doesn't work then we know the problem is somewhere with the script.

Thanks,
Kevin
PS: I'm writing this here in the thread because I can't attach files in PM.

Mitsuaki 10-05-2004 06:09 PM

i hope i did this right... i uploaded that file to the modules dir replacing the old file... but exactly the same thing occurs...

KW802 10-05-2004 07:35 PM

Quote:

Originally Posted by Mitsuaki
i hope i did this right... i uploaded that file to the modules dir replacing the old file... but exactly the same thing occurs...

Is it still at the same URL that you sent via PM? If so I'll try to check it tonight when I'm back at the house.

Mitsuaki 10-06-2004 04:28 PM

tis the same except the action is 'p' instead of 'page' so it will be 'index.php?p=smilie'

Chazz Layne 10-09-2004 06:57 PM

Quote:

Originally Posted by KW802
...or to save all of the images on their server eating up drive space, if they didn't have to...

How difficult would it be to make it do just that, and list out previously created smilies? I fuddled around with it for a while, but I don't know the inner workings of vB well enough to get the results to show ON a vB page (specifically, the same page as the Smilie Creator as a second "module"). It would work well for situations like mine where only paid subscribers can access the Smilie Creator... :D


Great hack BTW, my members are gonna love this.

[high]* Chazz Layne clicks install.[/high]

KW802 10-10-2004 02:04 AM

Mitsuaki: I haven't forgotten about you, I just haven't been home much lately. I'm getting married in less than 4 weeks and my free time has been reduced further than I thought it was going to be. :(

Chazz: Getting it to save the images is just a matter changing the PHP file. What I'm picturing in my head for the next version is an option to pass in whether to save the file to the server or not. I'll have to take a look to see if there is an easy way of looping through the previously created images to build the page on the fly (I haven't done something like that before yet so it's now on my list of 'things to learn how to do' :D ). The first part shouldn't be a problem but the second part will require me to do some quick learning.

If either of you guys don't hear back from me within a few days hit me up with a PM. :)

KW802 10-11-2004 07:47 PM

OK, is there anybody who is not using this with VB3? How about anybody who has access opened up to everybody including guests?

I'm working on saving the images to the server but need to come up with a naming convention. For my own purposes I'm thinking of using "{userid}_{YYYYMMDD}{HHMISS}_{file name of smileyselected}" -- Essentially I need to ensure that the file name is unique when saved to the server. The format I mentioned would result in a name like "1_20041011164111_vorlange1.png" which is a bit unwieldy but unique.

I wouldn't want to use the user name since it might contain characters like spaces, etcetra. The date & time ensure uniqueness and the source name would be just a nice thing to have in there. For people who have access opened up to non-guests then there might be an issue with having the userid in there because on a larget site it could happen that multiple guests are creating a smiley from the same source image at the same second. :ermm:

Thoughts? Bueller?

Chazz Layne 10-11-2004 07:56 PM

That's exactly the way I was doing it, minus the userid. I have a PotD running the same way. I figured a paginated gallery (like avatars) would work best for retrieving them. The 2 problems I hit were both from not knowing the workings of vB well enough to get the filename to pass back to the template via variable to show the image after it's created (or the list of older images)... wish I had more time to read up on it.

OT: Congrats on the upcoming wedding. :D

Mitsuaki 10-18-2004 05:36 PM

Quote:

Originally Posted by KW802
Mitsuaki: I haven't forgotten about you, I just haven't been home much lately. I'm getting married in less than 4 weeks and my free time has been reduced further than I thought it was going to be. :(

Chazz: Getting it to save the images is just a matter changing the PHP file. What I'm picturing in my head for the next version is an option to pass in whether to save the file to the server or not. I'll have to take a look to see if there is an easy way of looping through the previously created images to build the page on the fly (I haven't done something like that before yet so it's now on my list of 'things to learn how to do' :D ). The first part shouldn't be a problem but the second part will require me to do some quick learning.

If either of you guys don't hear back from me within a few days hit me up with a PM. :)

Np just as soon as u can....

Roms 10-24-2004 02:24 PM

Great job! :)

*Clicks Install

Makador 10-24-2004 03:36 PM

Hm nice hack, but what is the matter with: "Please do not link directly to the smilie." As I see it works fine and the user doesn't have to save and upload it himself, if you link directly to the smilie. So where is the problem?

Chazz Layne 10-24-2004 04:27 PM

Quote:

Originally Posted by Makador
Hm nice hack, but what is the matter with: "Please do not link directly to the smilie." As I see it works fine and the user doesn't have to save and upload it himself, if you link directly to the smilie. So where is the problem?

The direct link to the smilie as shown customised is actually to the script. If your users link to it that way it will re-create the custom smilie each time it's viewed, which will rapidly start to eat up resources. On a site that only gets a few hits it may not be a big deal, but in a forum environment I imagine it would get out of hand pretty quickly.

Makador 10-24-2004 04:33 PM

Hm yes thats right. Would be nice to modify the script, that it saves the generated picture automatically in a forum directory and shows the user the link, because most people don't have their own webspace and it is too much work to save and upload it.

KW802 10-24-2004 11:34 PM

Quote:

Originally Posted by Makador
Hm yes thats right. Would be nice to modify the script, that it saves the generated picture automatically in a forum directory and shows the user the link, because most people don't have their own webspace and it is too much work to save and upload it.

It's being worked on. ;) Unfortunately my time for the next few weeks is almost completely filled up with wedding stuff but I'm slowly working on it.

The number one thing I've learned this summer is this: If you're getting married, hire a wedding planner! Doing the arrangements ourselves has ended up taking so much time away from us that nearly any time away from work, and even some time during, is taken up with working on the arrangements. Two more weeks and it'll all be over though. :lick:

Mattius 10-27-2004 01:34 AM

Is there a way to change the background "outside" the banner to a colour other than white...? I notice the png files used are transparent initially in that spot

paulmjno 12-07-2004 01:23 AM

The Mozilla Firefox browser does not recognise the smilies as images, IE does...I am using Mozilla FF 1.0.

Also: If someone knows the direct image link, they could keep visiting it, causing a load of work for the server, and possibly crashing it. People can ask directly link to the images putting them on their websites, and posting them to other boards, etc. Shouldn't this possibility be eliminated? While I have installed this, it is not currently under use. Mainly because of the FF issue, but also because of those other issues I mentioned. The image should be saved temporarily to the server, and a scheduled task should remove saved images. Now, a bonus would be for users to create their own selection of smilies, which they could use in postings. It would be wise, of course, to limit the amount of smilies a user can make.

HarryBO 12-22-2004 03:36 PM

How can I create a new Page for the Creator? I don“t want the Smilie Creator on the Portal Side!

HarryBO 12-26-2004 03:32 PM

Can nobody help?

KW802 02-04-2005 05:56 PM

Paulmjno: FF recognizes it fine for me and other sites that I've seen it on. :confused:

HarryBO: Do you mean a seperate page without using CMPS?

Pamela 03-01-2005 09:24 PM

Does anyone know how I can add more color selections to the font color and sign background colors?

What code changes would I need to make (I have no clue even where to start).

Thank you! :)

eva01_ 03-01-2005 09:31 PM

my guess would be to go into the fps_smilie_creator_template.html and then just add more colors after the white part before </select>
HTML Code:

    <!-- START: Text color -->
  <tr>
      <td align="left" valign="top" class="alt1">
      <smallfont><strong>Choose the sign's text color:  </strong></smallfont>
    </td>
    <td align="left" class="alt1">
      <select name="col">
      <option value="0,0,0" selected style="background-color:#000000; color:#FFFFFF">Black</option>
        <option value="0,0,255" style="background-color:#0000FF">Blue</option>
        <option value="185,207,232" style="background-color:#B9CFE8">Softblue</option>
        <option value="255,153,0" style="background-color:#FF9900">Orange</option>
        <option value="255,210,0" style="background-color:#FFD200">Yellow</option>
        <option value="0,255,0" style="background-color:#00FF00">Green</option>
        <option value="197,248,163" style="background-color:#C5F8A3">Softgreen</option>
        <option value="13,105,3" style="background-color:#0D6900; color:#FFFFFF">Darkgreen</option>
        <option value="147,81,3" style="background-color:#935103; color:#FFFFFF">Brown</option>
        <option value="255,255,255">White</option>
    </select>
    </td>
  </tr>
  <!-- END: Text color -->

same thing for the background color just go into the background color code and add more

KW802 03-01-2005 09:43 PM

Quote:

Originally Posted by eva01_
my guess would be to go into the fps_smilie_creator_template.html and then just add more colors after the white part before </select>
<snip>
END: Text color -->[/html]

same thing for the background color just go into the background color code and add more

Exactly!

In a line like....
PHP Code:

 <option value="255,255,255">White</option

The "255,255,255" is simply the RGB value of the color to use.

Pamela 03-01-2005 10:11 PM

Oh okay...that definitely seems easy enough! Thank you eva01 and KW802!!! :D

Vman 04-28-2005 12:11 AM

OK, I guess Im not understanding the install on this. I have installed alot of hacks, but Im not getting how to do it for vB....

Im lookin for members to be able to create a smiles and once done, click it to add right into a thread, just like you would do with the regular smilies....Am I missing something here and can anyone PLEASE point me in the right directoin on installing this and doing this..

Thanks Guys....Love to have this hack workin soon!

Vman

Polo 04-28-2005 12:15 AM

this hack only generates smillies with the little text at the top of it... users have to save them to their computer and then use them wherever they want... however what you want to do is a little more complex, but would definetly be something cool... maybe a coder would like to do that... but for now.. is only the default way ;)

Gottcha 04-28-2005 02:56 AM

got it to all show up on my site but where the smilies are created is a red x...any help is appreciated

http://www.fragtraders.com/modules.php?name=smilies

Polo 04-28-2005 12:21 PM

Quote:

Originally Posted by Gottcha
got it to all show up on my site but where the smilies are created is a red x...any help is appreciated

http://www.fragtraders.com/modules.php?name=smilies

it doesnt work at all... wonder what could be the problem... maybe since you are not using the cmps... but this should be able to work without the cmps... oh well I hope kevin can help you out...

:Judge: 08-10-2005 01:12 AM

wow this has been around for awhile.

I just got done adding it but I am also getting the broken image where the created smilie should be.

Here is a link:
http://www.cecilcountyx.com/index.php?page=smilies&

KW802 08-10-2005 04:00 AM

Judge, does the .php file have execute permissions in the modules folder?

:Judge: 08-11-2005 11:18 AM

Quote:

Originally Posted by KW802
Judge, does the .php file have execute permissions in the modules folder?

I just looked in the folder and I do NOT see anything about execute permissions.

This is a first I have heard of this. What is it that I need?

:Judge: 08-19-2005 01:59 AM

Hey KW802 you still with me?

m0nde 08-19-2005 06:57 PM

Very good idea and nice implementation! :up:

- Sid

Lea Verou 10-27-2005 11:29 PM

This looks nice. Is there any chance it will be ported for 3.5? :)


All times are GMT. The time now is 08:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01447 seconds
  • Memory Usage 1,842KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete