Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vba CMPS: Smilie Creator Details »»
vba CMPS: Smilie Creator
Version: 1.00, by KW802 KW802 is offline
Developer Last Online: Nov 2021 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-05-2004 Last Update: Never Installs: 62
 
No support by the author.

vBa CMPS: Smilie Creator v1.0.1

OVERVIEW: This is a conversion of an old VB2 hack (https://vborg.vbsupport.ru/showthread.php?t=50450) by Kars10 to create new smilie faces on the fly. The original version acted as a pop-up box from within a BB code so that the new smilie would be inserted into your forum message posting. A BB code trick posted over at vbulletintemplates.com (http://www.vbulletintemplates.com/mo...ead.php?t=6671) really eliminates the need of having to do this hack anymore since you can accomplish nearly the same thing without having to do any code changes. I was still interested in this old hack though because there are times I'd like to be able to create a new smilie on the fly either for my own personal usage or for my site. So looking at it as a learning experience my goals were to change the hack to be a more generic approach and make it easy to integrate into a site so making it into a vBadvanced CMPS (http://www.vbadvanced.com) module seemed the obvious answer. The other added benefit of making it into a vBadvanced CMPS module is the fact that it could then be added to a web site without doing any code modifications at all but still being able to, for instance, block access to it from non-registered users. I emphasis.... the PHP code is by Kars10, my only change to it was to remove the file name from being hard-coded and instead I'm passing it in from the template in order to make it easier to add new smilies in the future.

REQUIREMENTS: Since the template and PHP are really generic you should be able to easily get it working with just about configuration. For my purposes thought it was intended for.....
  • vBulletin 3.x.x
  • vBadvanced CMPS
  • A server that supports GD -- If you server is not running GD then it will not be able to create the new image.
INSTALLATION: Installation is really easy.....
  1. Upload the fps_smilie_creator.php file to your /forums/modules directory (the folder where you keep your CMPS modules).
  2. Upload the fps_smilie_creator folder to your /forums/images/smilies folder (the folder where you keep your VB smilies). The resulting path should then be /forums/images/smilies/fps_smilie_creator.
  3. Copy & paste the contents of fps_smilie_creator_template.html into a new custom template named adv_portal_fps_smilie_creator (or whatever your prefer).
  4. Create a new VBA CMPS page or module. This is really your choice. For my site I liked it better being a seperate page so when I created my page I used the Page Template option. If you add it as a module instead of a new page then do not include the PHP file in the new module, only include the template!
That's it, you're done! If you upload the PHP file to a folder other than your modules directory or if you upload the images to a folder other than ../images/smilies then you'll have to update the template path names.


UPDATES: Updates & changes....
  • 2004-08-09: The problem with the right-mouse "Save Picture As..." in Microsoft Internet Explorer, where it would want to save it as a bitmap instead of a PNG, has been fixed. I also tweaked the template a little to no longer need the <div> tags.
TIPS & TRICKS: Some ways increase the functionality of your Smilie Creator....REMINDER: To always be informed of updates & changes be sure to click the button. :classic:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 10-24-2004, 11:34 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #103  
Old 10-27-2004, 01:34 AM
Mattius Mattius is offline
 
Join Date: Sep 2004
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #104  
Old 12-07-2004, 01:23 AM
paulmjno paulmjno is offline
 
Join Date: Sep 2004
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #105  
Old 12-22-2004, 03:36 PM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can I create a new Page for the Creator? I don´t want the Smilie Creator on the Portal Side!
Reply With Quote
  #106  
Old 12-26-2004, 03:32 PM
HarryBO HarryBO is offline
 
Join Date: Jan 2003
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can nobody help?
Reply With Quote
  #107  
Old 02-04-2005, 05:56 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

HarryBO: Do you mean a seperate page without using CMPS?
Reply With Quote
  #108  
Old 03-01-2005, 09:24 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #109  
Old 03-01-2005, 09:31 PM
eva01_'s Avatar
eva01_ eva01_ is offline
 
Join Date: Aug 2004
Location: Plymouth
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #110  
Old 03-01-2005, 09:43 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #111  
Old 03-01-2005, 10:11 PM
Pamela Pamela is offline
 
Join Date: Apr 2004
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh okay...that definitely seems easy enough! Thank you eva01 and KW802!!!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:34 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.04570 seconds
  • Memory Usage 2,321KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete