vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Home Enhancements - [AJAX] SmnLikQuick v2.0 - Advanced Announcements Block (https://vborg.vbsupport.ru/showthread.php?t=172773)

King Kovifor 02-21-2009 01:53 PM

The color of the panels is in the template class. Uses default alt. But for rotation, update to this version, and it's in your vBOptions:

https://vborg.vbsupport.ru/showpost....&postcount=320

Sworm 03-02-2009 12:46 PM

Hi,
i have found the "problem" that is in the SmnLikQuick.php file in the AdminCp folder.

The author of the mod don't have used vBulletin's database class, for this i receive this errors, is not a database problem:

Code:

Warning: mysql_query() [function.mysql-query]: Access denied for user 'xxxx'@'localhost' (using password: NO) in [path]/admincp/mod.php on line 50

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in [path]/admincp/mod.php on line 50

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in [path]/admincp/mod.php on line 51

I have changed in the line 50 "mysql_query" with "$db->query":

Code:

$announcements = mysql_query("SELECT count(*) FROM `" . TABLE_PREFIX . "mod`");
Code:

$announcements = $db->query("SELECT count(*) FROM `" . TABLE_PREFIX . "mod`");
With this edit the first 2 errors are fixed, but there's again the last error on the line 51:
Code:

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in [path]/admincp/mod.php on line 51
How can i do for change this string in vb database class?Or the're's any other fix?

Sworm 03-03-2009 08:53 AM

Solved my problem, now this great hack work on my forum too:

if anyone have the same problem, however this warning:
Code:

Warning: mysql_query() [function.mysql-query]: Access denied for user 'xxx'@'localhost' (using password: NO) in [path]/admincp/smnlikquick.php on line 50

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in [path]/admincp/smnlikquick.php on line 50

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in [path]/admincp/smnlikquick.php on line 51

Try this edit:

In the file AdminCp/SmnLikQuick.php found (on line 50):
Code:

$announcements = mysql_query("SELECT count(*) FROM `" . TABLE_PREFIX . "smnlikquick`");
$announcement = (mysql_result($announcements, 0, 0));

replace with:
Code:

  $announcement = array_pop($db->query_first("SELECT count(*) FROM `" . TABLE_PREFIX . "smnlikquick`", DBARRAY_NUM)) ;
Again in AdminCp/SmnLikQuick.php found(on line 122):
Code:

$announcements = mysql_query("SELECT count(*) FROM `" . TABLE_PREFIX . "smnlikquick`");
$announcement = (mysql_result($announcements, 0, 0));

Replace with:
Code:

$announcement = array_pop($db->query_first("SELECT count(*) FROM `" . TABLE_PREFIX . "smnlikquick`", DBARRAY_NUM)) ;
With this edit i have solved my problem, thanks to Shadab for the support

murekhalir 03-07-2009 10:15 PM

Quote:

Originally Posted by King Kovifor (Post 1750706)
The color of the panels is in the template class. Uses default alt. But for rotation, update to this version, and it's in your vBOptions:

https://vborg.vbsupport.ru/showpost....&postcount=320



I might be a tad bit ignorant, where is the template class? located.. >.<

apologies.

King Kovifor 03-07-2009 10:55 PM

OK, that was phrased wrong. The template is called something (it's been so long!) and inside that template you have <td class="alt1"> ... </td> alt1 is what you would have to change.

Filmkolik 03-27-2009 09:21 AM

Quote:

Originally Posted by King Kovifor (Post 1750706)
The color of the panels is in the template class. Uses default alt. But for rotation, update to this version, and it's in your vBOptions:

https://vborg.vbsupport.ru/showpost....&postcount=320

Thanks King Kovifor

mommiesrus 06-20-2009 06:04 PM

I just installed on my board and received the following error:

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/content/g/y/d/gyddas/html/smnlikquick.php on line 16

King Kovifor 06-21-2009 10:38 PM

Upgrade to 2.0.6, located in one of my posts here.

daxxer 07-04-2009 03:42 AM

Quote:

Originally Posted by King Kovifor (Post 1762830)
OK, that was phrased wrong. The template is called something (it's been so long!) and inside that template you have <td class="alt1"> ... </td> alt1 is what you would have to change.


Ok, call me an idiot but I don't understand. I've searched for text in the templates but find lots of alt1's ... I simply need to change the blue that is used in the announcement navbar to black and am clueless. Please help!!

Traxion 07-20-2009 09:52 PM

Quote:

Originally Posted by daxxer (Post 1842489)
Ok, call me an idiot but I don't understand. I've searched for text in the templates but find lots of alt1's ... I simply need to change the blue that is used in the announcement navbar to black and am clueless. Please help!!

You need to find the smnlikquick_css.css file and edit it. Its usually under the /forums/clientscript

Find: (mine is edited for my style so look for something similar. Mine was on line 13)
Code:

[background: #ff7502 url(/forums/morbid_orange/gradients/gradient_tcat.gif) repeat-x top left; /* EDIT PATCH/GRAPHIC */
Replace with:
Code:

background: #000000 repeat-x top left; /* EDIT PATCH/GRAPHIC */
On line 43 is the button color as well. If you want that black paste the same code there as well. Hope this helps


All times are GMT. The time now is 08:48 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.01540 seconds
  • Memory Usage 1,750KB
  • 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
  • (11)bbcode_code_printable
  • (4)bbcode_quote_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