vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Random Smilies in reply boxes for vb3 (https://vborg.vbsupport.ru/showthread.php?t=59829)

SiXXGuNNZ 01-07-2004 03:58 AM

Random Smilies in reply boxes for vb3
 
<a href="https://vborg.vbsupport.ru/showthread.php?t=34161" target="_blank">for vb2</a>

I assume it is line 244 or 437 or both on misc.php in the root folder, I just do not know what to change :ermm:

SiXXGuNNZ 01-07-2004 04:29 AM

Line 244

PHP Code:

 $smilies $DB_site->query("
  SELECT smilietext,smiliepath,smilie.title,imagecategory.title AS category
  FROM " 
TABLE_PREFIX "smilie AS smilie
  LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
  ORDER BY imagecategory.displayorder, smilie.displayorder
 "
); 

Line 437

PHP Code:

 $smilies $DB_site->query("
  SELECT smilietext AS text, smiliepath AS path, smilie.title, smilieid,
  imagecategory.title AS category
  FROM " 
TABLE_PREFIX "smilie AS smilie
  LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
  ORDER BY imagecategory.displayorder, smilie.displayorder
 "
); 

I would think the right way to do this hack would be:

Line 244

PHP Code:

 $smilies $DB_site->query("
  SELECT smilietext,smiliepath,smilie.title,imagecategory.title AS category
  FROM " 
TABLE_PREFIX "smilie AS smilie
  LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
  ORDER BY imagecategory.RAND, smilie.RAND "
); 

and:

Line 437

PHP Code:

 $smilies $DB_site->query("
  SELECT smilietext AS text, smiliepath AS path, smilie.title, smilieid,
  imagecategory.title AS category
  FROM " 
TABLE_PREFIX "smilie AS smilie
  LEFT JOIN " 
TABLE_PREFIX "imagecategory AS imagecategory USING(imagecategoryid)
  ORDER BY imagecategory.RAND, smilie.RAND
 "
); 


SiXXGuNNZ 01-07-2004 09:21 PM

yeah, this don't work, does anybody know the fix?

SiXXGuNNZ 01-15-2004 01:52 AM

am I really the only one who likes to have random smilies appear? :(

Zachery 01-15-2004 02:11 AM

Quote:

Originally Posted by SiXXGuNNZ
am I really the only one who likes to have random smilies appear? :(

set their id to 1 all of them they will appear randomly

Gio Takahashi 01-15-2004 05:13 PM

How would I do that?

NTLDR 01-15-2004 05:58 PM

I posted the code to change in another thread yesterday.

Gio Takahashi 01-15-2004 08:33 PM

I had to search through your post to find it, and it worked.

For those who are wondering what thread it is, its This one

*arie 01-15-2004 09:57 PM

thanks, i got it working now. :D

SiXXGuNNZ 01-16-2004 01:46 AM

yer my hero :)


All times are GMT. The time now is 07:13 PM.

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.05252 seconds
  • Memory Usage 1,743KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_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
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete