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)
-   -   Miscellaneous Hacks - Global Tag Cloud in Side Bar or Anywhere (https://vborg.vbsupport.ru/showthread.php?t=177429)

Alfa1 05-01-2008 02:00 PM

Please add the function to show only forum specific tags are shown. i.e. tags that are used in the forum that the tag cloud is in. That would have a very nice effect on SEO.

soundbarrierpro 05-01-2008 07:02 PM

I already have Ultimate Side Columns implemented. Can I add this code to one of the side column blocks in ACP? Will it still work?

cihangir 05-03-2008 05:16 PM

i have been using this plugin and i like it much, but it is not compatible with the vbulletin-blog add-on.

here is the copy of the error message:

PHP Code:

Database error in vBulletin 3.7.0:

Invalid SQL:

               (
                       
SELECT COUNT(*) AS total,
                       
FROM_UNIXTIME(dateline - , '%c-%e-%Y') AS period
                       FROM blog 
AS blog

                       WHERE state IN
('visible''moderation''deleted') AND dateline >= 1208728800 AND dateline 1209832470
                       GROUP BY period
               
UNION (
                       
SELECT COUNT(*) AS total,
                       
FROM_UNIXTIME(dateline - , '%c-%e-%Y') AS period
                       FROM blog 
AS blog
                       WHERE blog
.userid AND dateline >= 1208728800 AND dateline 1212357600
                       GROUP BY period
               
);

MySQL Error   You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near ' '%c-%e-%Y') AS period
                       FROM blog AS blog

                       WHERE state IN('
visible', 'mo' at line 3
Error Number  : 1064
Request Date  : Saturday, May 3rd 2008 @ 06:34:30 PM
Error Date    : Saturday, May 3rd 2008 @ 06:34:30 PM
Script        : http://forum.zoque.net/blog.php
Referrer      : http://forum.zoque.net/
Classname     : vB_Database
MySQL Version : 5.0.51a-0.dotdeb.1-log 


lafsunlmtd 05-04-2008 07:14 AM

am looking into vb-blog compatability

MiahBeSmokin420 05-04-2008 09:53 AM

HERE IS THE FIX FOR VB BLOGS

ok i though i would share this

but for everyone getting the error when you go to view blogs

this is what you need to do to fix that

go to plugin manager

look for Cloud > Global Start

then replace everything with :

HTML Code:


if (THIS_SCRIPT == 'blog' OR THIS_SCRIPT == 'blog_usercp' OR THIS_SCRIPT == 'blog_subscription' OR THIS_SCRIPT == 'blog_search' OR THIS_SCRIPT == 'blog_search' OR THIS_SCRIPT == 'blog_report' OR THIS_SCRIPT == 'blog_post' OR THIS_SCRIPT == 'blog-newattachment' OR THIS_SCRIPT == 'blog_inlinemod' OR THIS_SCRIPT == 'blog_callback' OR THIS_SCRIPT == 'blog_attachment' OR THIS_SCRIPT == 'blog_ajax' OR THIS_SCRIPT == 'blog_external') {     
    } else {
$vbulletin->datastore->fetch(array('tagcloud'));
$vbulletin->templatecache['tag_cloud_box'] = str_replace('$vbphrase[tag_cloud]', 'Tag Cloud', $vbulletin->templatecache['tag_cloud_box']);

require_once(DIR . '/includes/functions_search.php');
$tag_cloud = fetch_tagcloud('usage');
if ($tag_cloud)
{
    eval('$headinclude .= "' . fetch_template('tag_cloud_headinclude') . '";');
}
 }

that should solve all problems with the errors on the blogs page cause it fixed it on mine

remember to make a txt copy of what was there before you change it

although the only thing that i did was added a if command to make it so it wont run the product on the blog page


the creator of this mod should edit the files so that this is built into the mod since you really dont need a cloud in the blogs anyways

hope that helps people enjoy

FLMom 05-04-2008 05:47 PM

Thanks! Installing now :D

FLMom 05-04-2008 06:09 PM

OK I got it to work, but I can't see the text because it is too light of a color. How can I change the color so it's readable?

Thanks!

jeff-- 05-06-2008 02:12 AM

A quick fix would be to make a new class with whichever color you want links to be (presumably the same as your forum links) and just apply a div around the $tag_cloud with that class.

After looking at your forum a better idea would be to follow step number 4 in the mod instructions where you replace tag_cloud_box with that code and make your own sidebar block instead of using the mod's code so that it will follow your css.

lafsunlmtd 05-06-2008 03:23 AM

ok updated with vb blog compatibility. Thanks for the quick code fix

RetroDreams 05-06-2008 01:57 PM

Works as expected.


All times are GMT. The time now is 04:34 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.01012 seconds
  • Memory Usage 1,748KB
  • 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_html_printable
  • (1)bbcode_php_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