vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Change the display order of smilies (https://vborg.vbsupport.ru/showthread.php?t=25888)

Host Directory 03-14-2003 08:06 PM

The reason i am concerned about this hack is because it is a prequisit to another hack called the smilie panel - https://vborg.vbsupport.ru/showthrea...236#post361236

I really like the smilie panel hack and it was hard to set up so i dont want to loose it when i install.

Can anyone confirm this hack working in 2.30?

Stud_Muffin 03-22-2003 10:27 AM

I installed it in vb 2.3.0 and I can update the order in 'Smilies' 'Modify' and the display does reflect this in the admin CP.
The the 'Smilies' window shows the correct order but the 'get more smiles' window do not reflect this order.

Mikado247 04-11-2003 07:11 PM

There is an error in the code.

It's the reason of Parse error. look this :

Change :

PHP Code:

 while (list($key,$val)=$order)) { 

For :

PHP Code:

 while (list($key,$val)=$order) { 

and it's work !

(tested on vbulletin v2.3.0)

Mikado247 04-11-2003 09:12 PM

Well, the code who work is :

PHP Code:

while (list($key$val) = each($order))
{
  
$DB_site->query("UPDATE smilie SET showid='$val' WHERE smilieid='$key'");


It's work on vbulletin 2.3.0

Mikado247 04-11-2003 09:14 PM

There are a litle bug ...

Code:

while (list($key, $val) = each($order))

AdultInsider 04-15-2003 05:12 PM

What mikado is saying is that the following might need to be done to make it work in 2.3. This is what I did:

Change

PHP Code:

while (list($key,$val)= $order

to
while (list($key,$val)= each($order))

jibious 05-17-2003 12:26 AM

question. my smilies are listed in order, starting at 176 (through 357). just wondering if there is a query anyone knows that i could run to just change their order, starting at 1? so basically just re-order them 1-179 rather than 176-357 (keeping the same order they are in now though...

otto

gmarik 05-17-2003 07:27 AM

FireFly, could you make it just in one .txt file for easier download?
And I wanted to ask you - how does the table building array function in HiveMail 1.2 differs from vBulletin 2.30 - can they be integrated in one way or are they just too different?

Anjie 05-23-2003 03:10 PM

Installed on 2.3.0 and works wonderfully! Thank you Firefly!!

gthell 05-26-2003 09:11 AM

Im running 2.30 and this is what i get. I checked 4+ times too.

PHP Code:

Parse errorparse errorunexpected '{' in /home/valider/public_html/forum/admin/smilie.php on line 269 

the code in smilie.php:
PHP Code:

if ($HTTP_POST_VARS['action']=="doorder") {

??while (list(
$key,$val)=each($order)) {

????
$DB_site->query("UPDATE smilie SET showid='$val' WHERE smilieid='$key'");

??} 

??echo 
"<p>Order updated!</p>";

??
$action="modify";


i tried everything that was posted b4 me and still get that error....please help :(


All times are GMT. The time now is 01:46 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.01366 seconds
  • Memory Usage 1,746KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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