vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   vBulletin CMS Widgets - United-Forum Nivo Slider Widget (https://vborg.vbsupport.ru/showthread.php?t=267024)

Mooff 07-23-2011 08:24 PM

two possibilities come to mind:
a) you do not have the jquery1.4.4.js file in the vbulletin folder
This would mean search
Code:

<script type="text/javascript" src="clientscript/jquery/jquery-1.4.4.min.js"></script>
and replace with
Code:

<script type="text/javascript" src="' .$slider_img_filepath. 'jquery-1.6.1.min.js"></script>
b) you already have a jquery version running on the page where the slider is included.
Just delete that line. Two jquery files on one page are unnecessary and unfortunately break the jquery execution.
Code:

<script type="text/javascript" src="clientscript/jquery/jquery-1.4.4.min.js"></script>
If the jquery version you are using on your website is above 1.4 - you are fine and everything should be working now.
If it isn't - update your version.

Alfa1 07-23-2011 09:31 PM

Quote:

Originally Posted by Mooff (Post 2223932)
0.9.2 (23.07.2011)
  • fixed a bug which caused the slider to not find attachements
  • removed the fopen() function. Now checking via a GD function whether given ressource is an image

There you go - code in first post updated.
That should do the trick. =)

Im afraid not. :s

SECTalk.com 07-24-2011 01:02 AM

Thanks, I had multiple (about five or 6) instances of jQuery running.

Aramist 07-24-2011 05:09 PM

Same to me =/

Everything work fine....except images, that dont appear.

=/

Mooff 07-24-2011 05:21 PM

Sorry Alfa1, i'll check that attachment issue more thouroughly sometime next week when our new cms is finally live.

@ Aramist
- please check out post #41 maybe it's a javascript thing
- or are your article images attachments
- or do the images show up in the folder you specified
- or does the fallback image work if you set this switch on yes

I'll rewrite the first post sometime around tuesday, clean it up a bit and provide a (hopefully) usefull faq in the first comment.

Aramist 07-24-2011 05:45 PM

- please check out post #41 maybe it's a javascript thing
I've already done that

- or are your article images attachments
no

- or do the images show up in the folder you specified
the folder i've specified keeps empty..

- or does the fallback image work if you set this switch on yes
It works fine

I'm sure the problem is in the image creation, cause your condition to use a sample image in case the image creation fail is working.

But i haven't figured out why... =/

=/

Ty

Mooff 07-24-2011 05:57 PM

Do you have php GD installed?
Is the folder you've specified writeable?

If both answers are yes please comment out //ob_start(); and //ob_end_clean()
and post the debug message, if there is one.

Aramist 07-24-2011 06:03 PM

Ohhh...how stupid I am..

I had removed
//picture width and height !same as in the CSS FILE!
$maxwidth = 650;
$maxheight = 250;

that was the problem...now works fine

Good jog !!

Other question:

How can i point the DB query to get article from one exclusive cms category?

Ty a lot man :D

Mooff 07-24-2011 06:17 PM

Great to hear that. =)

category or section?
i'll write down the category code (untested)
Code:

$query = sprintf("
        SELECT
            article.pagetext,
            article.previewimage,
            node.url,
            node.publishdate,
            node.parentnode,
            parentnode.url AS parenturl,
            thread.replycount,
            info.title,
            node.nodeid
        FROM
            ".TABLE_PREFIX."cms_article AS article INNER JOIN
            ".TABLE_PREFIX."cms_node AS node
                ON (node.contentid = article.contentid AND node.contenttypeid = '%d') INNER JOIN
            ".TABLE_PREFIX."cms_nodeinfo AS info
                ON info.nodeid = node.nodeid INNER JOIN
            ".TABLE_PREFIX."cms_node AS parentnode
                ON parentnode.nodeid = node.parentnode LEFT JOIN
            ".TABLE_PREFIX."thread AS thread ON thread.threadid = info.associatedthreadid LEFT JOIN
            ".TABLE_PREFIX."cms_nodecategory AS nodecategory ON nodecategory.nodeid = node.nodeid
        WHERE
            nodecategory.categoryid = X AND
            node.setpublish = 1 AND
            node.publishdate > '%d' -34560000
        ORDER BY node.publishdate
        ASC LIMIT 20"
        ,$article_type,$time);

that X in
nodecategory.categoryid = X AND
is your categoryid - you have to look that one up. For example:
/content/category/31-esport.html
Category esports on our site has the ID 31.

in addition, delete that line:
Code:

        $categories = explode(',' , $article['GROUP_CONCAT( category.category )']);

Aramist 07-24-2011 06:28 PM

Oh TY !

I had to include category.categoryid in select option.

Now works like a charm !!

TY a lot Dude!

5 star rated for the mod and for the support!


All times are GMT. The time now is 05:11 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.01485 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_code_printable
  • (1)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