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)

Xer 12-06-2002 05:55 PM

WORKING ON 2.2.9

LilTara 12-10-2002 02:40 AM

I'm having the same trouble as that Ying ho person.... can someone please help. It says:

Parse error: parse error, unexpected T_VARIABLE in /home/prue/public_html/admin/functions.php on line 2091

Warning: Cannot add header information - headers already sent by (output started at /home/prue/public_html/admin/functions.php:2091) in /home/prue/ public_html/admin/functions.php on line 1593

Fatal error: Call to undefined function: getclickysmilies() in /home/prue/public_html/showthread.php on line 252

N9ne 12-10-2002 03:56 PM

I've got this working for me no problems on 2.2.8, should work on 2.2.x.

LilTara 12-10-2002 05:09 PM

I have 2.2.7.... I'm not sure if it's conflicting with another hack or if I've just done something wrong. It seems to be related to my functions.php file because when I restore the back up of that file everything works again.

Any ideas?

N9ne 12-10-2002 05:25 PM

It should work, there's no reason why it shouldn't...try re-applying the changes in functions.php, there's only two and they're just modifications to queries.

LilTara 12-10-2002 06:35 PM

I've redone it several times... so I'm pretty baffled.

Thanks though N9ne... I'll try again.

N9ne 12-10-2002 07:05 PM

Have you got any other hacks installed which have anything to do with smilies in any way?

LilTara 12-10-2002 08:51 PM

I've got the quick reply box that has smilies... I didn't install it myself though since I took the board over from a friend... so I'm not sure what version it is.

N9ne 12-10-2002 08:53 PM

When you added smilies to quick reply, did you modify functions.php ?

LilTara 12-10-2002 08:54 PM

Honestly I don't know... as I posted above, I'm not the one who installed that hack... I can probably find out though.

AzzKickr 12-17-2002 11:51 PM

hi guys. is it possible to make this:
first 6 smilies will always be here and i will setup it using this hack, and other 6 will check random using random smilies hack :chinese:
sorry my bad english :p :rolleyes:

Dan_UPC 01-06-2003 12:51 AM

Thanks for a great hack Firefly.

*Installs*

Oblivion Knight 02-05-2003 08:50 PM

Top stuff FireFly.
Nice and simple, yet really handy :)

[high]* Oblivion Knight clicks install.[/high]

Host Directory 02-10-2003 09:33 PM

I have been looking for a hack which does not seem to exist, this is kind of on the same lines so i am hoping you might be interested in this hack.

New area in admin panel.

Allows you to set the smilies in Posts to be displayed ramdomly or pick the ones you wish from your smilies list to display in the New Post area.

Also allows option to display smilies in Get More as ramdom but also allows you to select how many smilies should appear in Get More before splitting the page.

For example if you have 400 smilies and you set the number to split at 50. The result would be 8 seperate pages with the smilies on.

This is much better - i have lots of smilies and they all display on one page. Many of the smilies i have are animated and the server cannot cope with so many on one page. I think a lot of people have this problem. The result is many of the smilies do not show as a graphic.

This would be a good hack to make.

Host Directory 02-15-2003 04:48 PM

Can someone do me a massive favour and talk me through phpmyadmin - i am confused how to change the code.

I need to

Quote:

ALTER TABLE smilie ADD showid SMALLINT not null
ALTER TABLE smilie ADD INDEX (showid)
UPDATE smilie SET showid=smilieid
I have never used phpmyadmin before. Can someone talk me through?

Host Directory 02-17-2003 01:54 PM

I have installed this now and its working fine on 2.2.9

Someone has told me that this hack wont work on the new version of vb 2.3.0.

Can anyone confirm this before i upgrade?

Paraone 02-21-2003 06:16 PM

EDIT: I JUST NOTICED THE POST ABOVE MINE!!!! I have version 2.3.0 and I can't get it to work, can "DA MAN" make one that works for the newest version ppppplease please please...!!! If not I understand..... now read my post, it may help you fix whatever problem it is having...

Ok i got this error:

Parse error: parse error in /home/clan-tuc/public_html/forums/admin/functions.php on line 865

Fatal error: Call to undefined function: vbdate() in /home/clan-tuc/public_html/forums/admin/sessions.php on line 400

after the 1st post install....so i put the old backup of functions back in...and the site came back up, tried it all again and same error...

Ok so then i downloaded the orsmin file...and the first link worked, but the second gave an error...so i ran the first again...then installed everything and same error...so i replaced the functions.php with the original copy and the sites backup(still the modified smilie.php)

so just for the hell of it, i went into admin...and now i have numbers below the smilies...so i tried changing the order, and it didn't work, obviously cuz i don't have the proper stuff in the functions.php....

Now when i ran the mysql queries...the last query didn't reply with ran succesful it just said :

Affected rows: 0

SQL-query : [Edit] [Create PHP Code]
UPDATE smilie SETshowid = smilieid

but i get that error....ne ideas whats going on

Cyricx 03-09-2003 09:15 AM

not getting the error codes but it definately isn't working for me, I'm on 2.3.0

it won't display their current order number or accept changes well, they get all fubared and contorted for the order lol.

No discernable pattern that I can find.

Paraone 03-09-2003 04:55 PM

well i wonder if we can get this working on 2.3.0 ...who is a super hacker that can figure it out?

AllMadden.net 03-14-2003 06:49 PM

It seems to work on 2.3 for me...but when I try to edit the smilies or add or upload in the admin menu I get this error:

Parse error: parse error, unexpected ':' in /home/virtual/site4/fst/var/www/html/madden/forums/admin/smilie.php on line 268

Any idea how to fix that?

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 :(

smx 06-06-2003 07:00 AM

gthell I installed it on VB3.0 .. got the same error ...


Replace:
PHP Code:

// ###################### Start do order #####################
if ($HTTP_POST_VARS['action']=="doorder") {
while (list(
$key,$val)=each <http://www.php.net/each>($order)) {
$DB_site->query("UPDATE smilie SET showid='$val' WHERE smilieid='$key'");
}

echo 
"<p>Order updated!</p>";
$action="modify";



With:
PHP Code:

// ###################### Start do order #####################
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 also got an error on line 262, but this was due to spaces ...
Try removing all spaces between lines ! ;)

Linus 06-10-2003 02:17 AM

The order seems to be changed only in the Admin CP and when Users post replies/new threads. However when clicking on more smilies the order is not updated.

electrolov 06-21-2003 01:37 PM

Quote:

05-26-03 at 11:11 AM gthell said this in Post #150
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 :(

had same error line, i deleted space from start of line to code on lines 269, 270,273.

might help if u delete the "?"'s in yr code.

DeeperImage 07-03-2003 06:13 PM

I installed it on 2.3.0 and i got no errors, but it will not accept the order commands. I keep hitting update and everything and no changes. When i first installed it some of them worked but thats it.. What can i do?

JonUrban 07-16-2003 02:36 AM

I just installed this on 2.3.0. I got the sucess message, but I cannot see anywhere to assign the smile order? Does that mean I screwed it up, or is it operator malfunction?

Thanks

Oblivion Knight 07-16-2003 06:46 AM

Quote:

06-10-03 at 04:17 AM Linus said this in Post #152
The order seems to be changed only in the Admin CP and when Users post replies/new threads. However when clicking on more smilies the order is not updated.
This was answered in Post #96.. ;)

https://vborg.vbsupport.ru/showthrea...173#post251173

Host Directory 07-16-2003 10:22 PM

I am not sure what you mean Jon, i updated my forum from 2.2.9 to 2.3.0 and this hack works fine for me.

Was you upgrading your forum when you got the problem?

You can see this hack working at www.hostcompanies.com/forums (vb version 2.3.0)

JonUrban 07-17-2003 12:43 AM

Quote:

Today at 12:22 AM Host Directory said this in Post #157
I am not sure what you mean Jon, i updated my forum from 2.2.9 to 2.3.0 and this hack works fine for me.

Was you upgrading your forum when you got the problem?

You can see this hack working at www.hostcompanies.com/forums (vb version 2.3.0)

It worked. I just did not realize that I had to go into MySQL and modify the tables. I thought there might be a way to do it in the vBulliten Control Panel.

Anyway, I did it through MySQL, moved the ID numbers around, and all is well. Thanks to all for the help and the hack!

:-jon

DeeperImage 07-17-2003 02:59 AM

Quote:

Today at 09:43 PM JonUrban said this in Post #158
It worked. I just did not realize that I had to go into MySQL and modify the tables. I thought there might be a way to do it in the vBulliten Control Panel.

Anyway, I did it through MySQL, moved the ID numbers around, and all is well. Thanks to all for the help and the hack!

:-jon


Jon,
Would you be kind enough to tell us exactly what you did in there? thanks.

JonUrban 07-17-2003 03:11 AM

Quote:

Today at 04:59 AM DeeperImage said this in Post #159
Jon,
Would you be kind enough to tell us exactly what you did in there? thanks.

Sure! Bear in mind that I am a TOTAL ROOKIE at this, I have a slight amount of experience with Microsoft SQL, but I have never used any web based stuff at all.

I applied the hack using the second option and got the success message.

Then, I used phpMyAdmin (which is software provided by my web hosting company), selected 'database', then the 'forum' database. I was then presented with a list of tables in the database. I selected the "smilie" table, browsed it, and edited the following 2 fields until they were in the order I needed. "Smilieid" and "showid".

I renumbered the ones that I wanted to move (i.e. 12,13,14,15) to numbers out of my range, them renumbered the ones I wanted to make 12,13,14,15, and finally renumbered the temporary numbered ones back to the former numbers of the ones I moved.

This may be a round about, convaluted way to do this, but it worked!!

:-jon


All times are GMT. The time now is 03:33 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.01521 seconds
  • Memory Usage 1,853KB
  • 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
  • (10)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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