vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to upload a large number of smilies? (https://vborg.vbsupport.ru/showthread.php?t=161240)

dragon_1973 10-27-2007 01:34 PM

How to upload a large number of smilies?
 
I have a pile of smilies I'd like to upload to my forums. How can I do it without adding one at a time in the admin? I don't really care what they are titled (File name is file) or the replacement text is (although I prefer them not to have replacement text).

I can upload them to the server... but how do I get them in the database?

Thx.

MR.BOSS 10-27-2007 01:41 PM

i dont think u can add many at atime, in my forum i uploaded 100 smiles ( one by one )

good luck uploading them

Brandon Sheley 10-27-2007 02:05 PM

You can upload 1,000 at a time if you wish, just upload them to the smiles folder, and go to your smiley manager

MR.BOSS 10-27-2007 04:14 PM

Quote:

Originally Posted by Loco.M (Post 1369731)
You can upload 1,000 at a time if you wish, just upload them to the smiles folder, and go to your smiley manager

well u can upload million if you want, through ftp, but how will you varify them unless u add every single smilie, in the cpanel

ChrisLM2001 10-27-2007 04:18 PM

Depending on the OS you use, for a whole mass of images, you'll upload them in an archive, .zip or a tarball. Then deflate them on the server.

But to include the smilies to use in vBulletin, you'll be spending some time inserting them one-by-one via the Smilie console (unless someone has a script to make the process bearable for 100+ at a time).

Awjvail 10-27-2007 04:58 PM

IPB has a system where you can import an XML file and it will add the smilies.. Anybody have anything like that or can code anything like that?

dragon_1973 10-27-2007 05:08 PM

ok... so I'm trying to do this by hand (nothing fancy or reproducable).

1) On a windows machine I did a "dir > list.txt"
2) Upload all the smilies to the server in the directory images/smilies/extras
3) Create a new image category, and open the imagecategories table to find out it's id.
4) open the file list.txt in a macro-enabled editor. I use Notepad++ (A god send if you are a developer or open large files)
5) Create a macro to turn each line:
"02/04/2004 12:00 AM 238 alien.gif"
to
"insert into smilie(title,smilietext,smiliepath,imagecategoryid ,displayorder) values('alien','_alien_','images/smilies/extras/alien.gif',5,1)"

Then... take those SQLs and run them on your database.

Now, the problem I have is this... the smilies are in the list when I view it in admin, and the showup in the editors as they should. However, when you click on the smilie, preview, or post your post, the smilie is not there, just the text... _alien_ in this example.

In admin, if I edit the smilie and then save it, it works. And when I look in the database, the record looks the same.

So... question is, when you save a smilie, what else is written or updated? obviously not just this table.

Thx.

ChrisLM2001 10-27-2007 05:13 PM

Code:

'images/smilies/extras/alien.gif'
Try it with the forward slash...

Code:

'/images/smilies/extras/alien.gif'
On some servers you may even have to add it as

Code:

'../images/smilies/extras/alien.gif'

dragon_1973 10-27-2007 05:17 PM

On my server (FC7) it's just "images/sm..." no leading slash.

In admin the smilies show, and in the list of smilies in the editors it shows... which means the path is working.

--------------- Added [DATE]1193509277[/DATE] at [TIME]1193509277[/TIME] ---------------

Does vBulletin cache them somewhere? maybe a restart after I import them through the database this way?

--------------- Added [DATE]1193509493[/DATE] at [TIME]1193509493[/TIME] ---------------

ok... I feel like a loser... (Where is the smilie for that).

Upload to server and in the add smilies, there is a an add multiple smilies box... select all, and it does the rest!

Awjvail 10-27-2007 05:53 PM

OMG lol
Never even noticed that

Thank jesus.


All times are GMT. The time now is 10:52 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.01261 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete