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)
-   -   Flash Gallery Hack v 1.1 (https://vborg.vbsupport.ru/showthread.php?t=42674)

NeRilkA 09-06-2002 04:28 PM

and there is another problem, if we have more than 3 pages, the third page turn back to the first one... :(

Lesane 10-15-2002 07:26 AM

Quote:

Originally posted by Lanigironu
ARGH! This is absolutely ridiculous. Try these two queries:

Code:

INSERT INTO `settinggroupid` ( settinggroupid , title , displayorder ) VALUES ('32', 'Flash Gallery Options', '32');
And

Code:

INSERT INTO `setting` ( settingid , settinggroupid , title , varname , value , description , optioncode , displayorder ) VALUES (NULL , '32', 'Flash Gallery Active', 'flash_on', '1', 'This will turn off the gallery. It can be useful when trying to add Flash files or making modifications.', yesno', '1');

Or better yet, wait until futureal releases the vBProArcade hack. I will be integrating this hack into it.

settinggroupid don't exists! You need to add it in settinggroup. The query should be:

Code:

INSERT INTO `settinggroup` ( settinggroupid , title , displayorder ) VALUES ('32', 'Flash Gallery Options', '32');
And for the second query, you forgot a ' near yesno' so it should be:

Code:

INSERT INTO `setting` ( settingid , settinggroupid , title , varname , value , description , optioncode , displayorder ) VALUES (NULL , '32', 'Flash Gallery Active', 'flash_on', '1', 'This will turn off the gallery. It can be useful when trying to add Flash files or making modifications.', 'yesno', '1');
And in step2 you have: 'unsigneddefault' 2 times. That ain't working, it must be 'unsigned default'. ;)

Cyberhouse 10-29-2002 06:34 AM

Quote:

Originally posted by Lesane


settinggroupid don't exists! You need to add it in settinggroup. The query should be:

Code:

INSERT INTO `settinggroup` ( settinggroupid , title , displayorder ) VALUES ('32', 'Flash Gallery Options', '32');


Code:

Invalid SQL: INSERT INTO `settinggroup` ( settinggroupid , title , displayorder ) VALUES ('32', 'Flash Gallery Options', '32');
mysql error: Duplicate entry '32' for key 1

mysql error number: 1062

I?m getting this error when i?m trying to run that query. Can somebody tell me why ? ;)

Cyberhouse 10-29-2002 09:57 AM

Quote:

Originally posted by Cyberhouse



Code:

Invalid SQL: INSERT INTO `settinggroup` ( settinggroupid , title , displayorder ) VALUES ('32', 'Flash Gallery Options', '32');
mysql error: Duplicate entry '32' for key 1

mysql error number: 1062

I?m getting this error when i?m trying to run that query. Can somebody tell me why ? ;)

Hmm sorry, but I have found why it?s not working ;)

Erwin 10-29-2002 05:43 PM

change the value 32, to NULL and it will work. :)

Visionray 10-30-2002 10:08 PM

This hack works great, much better than the other addon in my opinion.

You really should update your zip file on the first page though, I had to debug a lot of your code.

Thanks though, works great now!

Visionray 10-30-2002 11:27 PM

$user = $DB_site->query_first("SELECT username FROM user WHERE

userid='$flashinfo[userid]'");
$username = $user[username];
$userid = $flashinfo[userid];

There seems to be a problem with this code here. In the gallery, the "submitted by" never shows the username.

Oxygen 01-18-2003 03:37 PM

When I surpase several pages (2) it continues to load the first pages worth of flash files/thumbs?

Any ideas

Oxygen 01-18-2003 06:33 PM

you have incorrect PHP (or it could have been my mistake implementing it)

$pagestart = ($pagenumber - 1) * $ppage;
should be:
$pagestart = ($pagenumber - 1) * $perpage;

Shadow_NL 03-01-2003 05:25 AM

I have this hack installed but I don't really like it, could anyone tell me how I can remove the database entries?

Thanks in advance.


All times are GMT. The time now is 07:22 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.01189 seconds
  • Memory Usage 1,739KB
  • 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
  • (7)bbcode_code_printable
  • (3)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
  • (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