vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Instant smilies&vb code hack ! (https://vborg.vbsupport.ru/showthread.php?t=3779)

10-13-2000 03:35 AM

Thanks for sharing it MrBlunt,

The javascript links gave me an error though !!
---------------
Windows Scripting Host - Script Execution Error

Description: Syntax error
-------------

What do I have to do with those files?!!

Thanks again :)

10-13-2000 04:57 AM

I like the part on the URL JavaScript Prompt, it asks you what URL you would like to link to... "For Instance, if you are linking to the URL of infopop, you might use the title Infopop Homepage" :)

Seriously tho, i really like what you did, good work!

10-13-2000 05:53 PM

Excellent work! Thanks guys - i'm sure our visitors will love this :) I've added it to our site already :)

10-21-2000 09:18 PM

OK, i've run into a problem - maybe it's just that i've been sat in front of this damned PC for the past 18 hours... ? :)

I have had this running just fine, then I decided to add some more smilies - larger ones, but I run into a problem in that no matter what I do, the damned thing doesn't want to know when I put the larger ones in the system and it throws a wobbly! :( Anyone see what i've done wrong (the new additions are the last two..)

Code:

<A HREF="javascript: x()" onClick="AddSmilie(' :D ');"><IMG SRC="images/smilies/biggrin.gif" width=15 height=15 BORDER="0" ALT="Big Grin"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :) ');"><IMG SRC="images/smilies/smile.gif" width=15 height=15 width=15 height=15 BORDER="0" ALT="Smile"></A>
<A HREF="javascript: x()" onClick="AddSmilie(' ;) ');"><IMG SRC="images/smilies/wink.gif" width=15 height=15 BORDER="0" ALT="Wink"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :( ');"><IMG SRC="images/smilies/frown.gif" width=15 height=15 BORDER="0" ALT="Frown"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :o ');"><IMG SRC="images/smilies/redface.gif" width=15 height=15 BORDER="0" ALT="Embarrasment"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :p ');"><IMG SRC="images/smilies/tongue.gif" width=15 height=15 BORDER="0" ALT="Stick Out Tongue"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :eek: ');"><IMG SRC="images/smilies/eek.gif" width=15 height=15 BORDER="0" ALT="Eek!"></A>
<A HREF="javascript: x()" onClick="AddSmilie(' :cool: ');"><IMG SRC="images/smilies/cool.gif" width=15 height=15 BORDER="0" ALT="Cool"></A>
<A HREF="javascript: x()" onClick="AddSmilie(' :mad: ');"><IMG SRC="images/smilies/mad.gif" width=15 height=15 BORDER="0" ALT="Mad"></A>
<A HREF="javascript: x()" onClick="AddSmilie(' :rotate: ');"><IMG SRC="images/smilies/rotate.gif" width=15 height=15 BORDER="0" ALT="Rotate"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :laugh: ');"><IMG SRC="images/smilies/laugh.gif" width=15 height=15 BORDER="0" ALT="Laugh"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :rolleyes: ');"><IMG SRC="images/smilies/rolleyes.gif" width=15 height=15 BORDER="0" ALT="Roll Eyes (sarcastic)"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :dunce: ');"><IMG SRC="images/smilies/dunce.gif" width=15 height=26 BORDER="0" ALT="Dunce"></A>?
<A HREF="javascript: x()" onClick="AddSmilie(' :angel: ');"><IMG SRC="images/smilies/angel.gif" width=42 height=23 BORDER="0" ALT="Angel"></A>?


10-28-2000 12:58 PM

That's what I thought...

Anyway, with the last two smilies on the above list:

http://www.ten-tenths.com/forum/newpost.html

Without:

http://www.ten-tenths.com/forum/newt...read&forumid=1

All help appreciated... :)

10-28-2000 05:47 PM

Yep - tried removing the brackets. Also tried moving the offending images to the head of the list - both without success. Bit of a mystery, isn't it ?

10-28-2000 05:51 PM

I just did that again, and uploaded a copy of the results to:

http://www.ten-tenths.com/forum/newpost1.html

10-28-2000 08:58 PM

Thanks, Mr B, but that didn't work either :( I copied the code directly from the file linked above, and the same result occurs :( Weird how it works on your site though!

Looks like i'm stuck without those smilies then... :(

10-28-2000 09:12 PM

Right! After some amount of trial and error, I realised my mistake... it wasn't the fault of the Javascript at all.

One of the first things that I did when I installed vBulletin was to go through and add the width and height attributes to all the image tags. All smilies were set to 15 pixels x 15 pixels by hardcoding it into the relevant template. Now, in order to add larger smilies, I made use of the replacement variables section. This allowed me to add the smilies - with the width and height attributes.

This worked fine - until now. Obviously, when the system does the replacements, it is now replacing the :dunce: in the Javascript with the replacement text specified elsewhere.

So, as I saiid above, it looks like i'm stuck without these larger smilies :( That is, unless John sees fit to modify the smilies table in the database in the next release so that it includes width and height attributes...

Sorry for wasting your time, Mr B, and thanks for the help...


All times are GMT. The time now is 06:29 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.01958 seconds
  • Memory Usage 1,738KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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