Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] SmnLikQuick v2.0 - Advanced Announcements Block Details »»
[AJAX] SmnLikQuick v2.0 - Advanced Announcements Block
Version: 2.0.4, by Bree Bree is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 03-11-2008 Last Update: 05-10-2008 Installs: 214
DB Changes Uses Plugins Template Edits
Additional Files Is in Beta Stage  
No support by the author.

Description:
SmnLikQuick v2.0 adds an advanced announcement block (Title and Content) to your vBulletin powered pages that is easily managed via AdminCP. This new version (based on the AJAX Tabs Content Script (v 2.0) written by Dynamic Drive), utilizes Ajax to display multiple announcements in one container when the title (tab) is clicked on. It also has the ability (and utilizes this ability upon install) to rotate between tabs (announcements) in a "slideshow" type manner until a user explicitly clicks on a tab (see screenshots provided).

See Post #02 for log.
See Post #98 for Upgrade Instructions.
See Post #99 for Multiple Styles Fix

DEMO: SmnLikDat.com Community

Co-Owner/Co-Authors:Please Note that there is a new setting that allows Admins to choose whether to parse BB Code or HTML (not both). It is reccomended that you parse BB for security reasons, however the choice is yours.

SmnLikQuick Addons:
  • SmnLikQuick CMPS Module - This turns your SmnLikQuick v2.0.x Announcements Block into a CMPS Module. You MUST have BOTH SmnLikQuick v2.0 AND vBAdvanced CMPS installed. Demo: SmnLikDat.com
Future Features:
  • Usergroup permissions per Announcement.
  • Slideshow timing controlled via AdminCP (Control Speed or Disable this feature)
  • Display certain Announcements to certain users via their UserCP
INSTALL:
  1. Upload the files within the UPLOAD folder (in this package) to the corrosponding forum directories on your server making sure to keep the filetree intact.
  2. Import Product: SmnLikQuick.xml via AdminCP>Plugins & Products>Manage Products>Add/Import Product
  3. Refresh AdminCP (ie: Ctrl-F5)
  4. Complete Template Edits (2 Edits) - Instructions provided in .zip file.
  5. (Optional) Edit includes/smnlikquick_css.css to match your style.
  6. Add Announcements & Enable the SmnLikQuick Mod via AdminCP>SmnLikQuick
Don't forget to mark as installed! Support will be given in this thread. Comments appreciated and feature requests welcomed! Thank you and Enjoy! -Bree

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #452  
Old 02-21-2009, 01:53 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #453  
Old 03-02-2009, 12:46 PM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #454  
Old 03-03-2009, 08:53 AM
Sworm Sworm is offline
 
Join Date: Feb 2008
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #455  
Old 03-07-2009, 10:15 PM
murekhalir murekhalir is offline
 
Join Date: Oct 2006
Posts: 254
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
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.
Reply With Quote
  #456  
Old 03-07-2009, 10:55 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #457  
Old 03-27-2009, 09:21 AM
Filmkolik's Avatar
Filmkolik Filmkolik is offline
 
Join Date: Jul 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
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
Reply With Quote
  #458  
Old 06-20-2009, 06:04 PM
mommiesrus mommiesrus is offline
 
Join Date: Dec 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #459  
Old 06-21-2009, 10:38 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upgrade to 2.0.6, located in one of my posts here.
Reply With Quote
  #460  
Old 07-04-2009, 03:42 AM
daxxer daxxer is offline
 
Join Date: Aug 2008
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by King Kovifor View Post
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!!
Reply With Quote
  #461  
Old 07-20-2009, 09:52 PM
Traxion Traxion is offline
 
Join Date: Apr 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by daxxer View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:59 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04990 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete