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 11-14-2011 01:21 AM

We are using php 5.3.8 (that's the latest stable release).

Your link doesn't help btw. I'm not using include() anywhere in the code. And i can't rewrite it so that it looks for the files in a local path, cause well, not all of them are stored locally. Preview pictures can be anything from attachement, to local image, to external image.

There *might* be a way getting around allowing url_open, which would be cURL, but finding out how cURL works involves a lot of time. And i'm not even sure it does work and i can't test it since we won't disable the allow_url_open setting on our box anyway.

mmoore5553 11-14-2011 08:07 PM

I do not know why but no picture is showing up but just the default no picture. Is this pulling inline images or attachements ? I am confused on what it trying to pull or at this point not pull. I have checked the faq and still lost.

jo8jo 11-15-2011 08:13 AM

Hi, the slider widget works fine for me :up: Great work ;)

One more problem i cannot solve:
I'm using this mod: VBCMS Threads promoted to articles link to forum thread no more article pages to link by clicking "Read more" to the original forum thread - not to the article!

The code in "vbcms_content_article_preview" changes to this:

Code:

<vb:if condition="$preview_chopped">
<span class="cms_article_readmore"><a href="{vb:raw vboptions.bburl}/showpost.php?{vb:raw session.sessionurl}p={vb:raw postid}">{vb:rawphrase read_more_phrase} <img src="{vb:stylevar imgdir_cms}/read_more-{vb:stylevar right}.png" alt="{vb:rawphrase read_more_phrase}" /></a>
</span>
</vb:if>

Original code:

Code:

<vb:if condition="$preview_chopped">
<span class="cms_article_readmore"><a href="{vb:raw page_url}">{vb:rawphrase read_more_phrase} <img src="{vb:stylevar imgdir_cms}/read_more-{vb:stylevar right}.png" alt="{vb:rawphrase read_more_phrase}" /></a>
</span>
</vb:if>

I want to click on the slider image or preview text and get forwarded to the forum thread - not to the article. I think i need to change the following php codeof the slider widget code to get the effect from above: :confused:

Code:

<span>'. $article['previewtext'] .'</span> <a href="/content.php?r=' . $article['nodeid'] . '-' . $article['url'] . '">More</a>';
                $article_neu['htmlcaptionname'] = 'htmlcaption' . $article['nodeid'] ;
                $article_neu['picture'] = '<a href="/content.php?r=' . $article['nodeid'] . '-' . $article['url'] . '">


I would be thankful for your suggestions :)

blackracoon 11-15-2011 02:42 PM

Hi Moof,

I have checked through, an image is being generated in the folder /slider if I put an attachment in the article, I'm using the jquery by vbulletin in the clientscripts folder so that there was definately no double ups (it's the correct directory I checked the source and it links correctly). But something just isn't working correctly.. seems like a formatting issue, but we cannot see any of the images or functionality buttons.

The directory is 777, I can see the .css file as per your test in the FAQ's to ensure the directory setting is correct. (img path).

The directory is slider/

I have enabled debugging on the site for viewing to see if anyone else has a clue of what may be going on..

http://www.etozclan.com/vbulletin

I've seen it in action on a few other peoples site it looks very nice, hoping we can get it succesfully configured and running.

- I have also enabled show article with no image so the default image shows, but that also does not work, even though the directory is 777 the directory is accessible and jquery is linked.. it seems.. :(

Regards

Mooff 11-15-2011 03:21 PM

@jo8jo
this should work (untested code)

search
Code:

        $article_get = vB::$db->query_read('
        SELECT
            article.pagetext,
            article.previewimage,
            node.url,
            node.publishdate,
            node.parentnode,

replace with
Code:

        $article_get = vB::$db->query_read('
        SELECT
            article.pagetext,
            article.previewimage,
            article.threadid,
            node.url,
            node.publishdate,
            node.parentnode,

search
Code:

<span>'. $article['previewtext'] .'</span> <a href="/content.php?r=' . $article['nodeid'] . '-' . $article['url'] . '">More</a>';
                $article_neu['htmlcaptionname'] = 'htmlcaption' . $article['nodeid'] ;
                $article_neu['picture'] = '<a href="/content.php?r=' . $article['nodeid'] . '-' . $article['url'] . '">

replace with
Code:

<span>'. $article['previewtext'] .'</span> <a href="/showthread.php?t=' . $article['threadid'] . '-' . article['url'] . '">More</a>';
                $article_neu['htmlcaptionname'] = 'htmlcaption' . $article['nodeid'] ;
                $article_neu['picture'] = '<a href="/showthread.php?t=' . $article['threadid'] . '-' . $article['url'] . '">

@mmoore5553
It's pulling whatever is stored by vbulletin as article preview picture. Please check the last FAQ question.

@blackracoon
everything looks fine coding wise, but firebug tells me that there is a jquery error when i open your site
Code:

$("#slider") is null
Line 355

I do not know where that is comeing from. Can you try to include a different jquery file (not the vbulletin version) and see if that does fix it?

blackracoon 11-15-2011 03:59 PM

Hi Moof,

It seems to still be bugged. I have included jquery in the slider widget now but I believe the exact same thing is happening. :(

Any other clues?

Regards

mmoore5553 11-16-2011 06:05 AM

Okay here is what my debug says
Also the no image pulls up fine.
Code:

slider_img_filepath: http://www.wpcreations.net/vbbarefoot/slider/
width: 650 height: 250
Strech or Crop?
show_articles_without_image: bool(false)
fallback_img: http://www.wpcreations.net/vbbarefoot/slider/uf_fallback_slider.png
#img: 10
description_length: 95
directory /home/mmoore/public_html/vbbarefoot

Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_434.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/wildlifejohn1a.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_434.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_432.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/hennaback1.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_432.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_427.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/moreoddlooksartwork_sm.png
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_427.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_426.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/dirt50m1.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_426.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_424.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/stop-stretching.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_424.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_423.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/germany_dresden1.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_423.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_422.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/zen_circle.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_422.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_421.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/oxygenconsumption2.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_421.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_420.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/indianrunners_0.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_420.jpg
Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/http://www.wpcreations.net/vbbarefoot/slider/slide_411.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 200
Error occurred: imagejpeg failed. http://barefootrunners.org/sites/default/files/d_2b.jpg
directory: /home/mmoore/public_html/vbbarefoot/http://www.wpcreations.net/vbbarefoot/slider/slide_411.jpg#articles - featured and databasepull int(10) int(20)


blackracoon 11-16-2011 06:19 AM

@Nmoore to resolve your issue please change in your php widget for your slider to $slider_img_filepath = 'slider/';

That should resolve your issue.

Regards, Racoon.

mmoore5553 11-16-2011 06:37 AM

wow amazing i did not even think of that. It is working great now. Thank you so much.

blackracoon 11-16-2011 01:31 PM

Hi,

So after hours of scanning through I worked out the issue to having a white screen, all your directories are corrrect and you retrieve this error only in firebug -

$("#slider").nivoSlider not found.

FIX:

Go to your widget you made, scroll to very end almost and edit this line:

$("#slider").nivoSlider

to

JQuery("#slider").nivoSlider

This is actually the correct way it should be called. a $ is the common way, it may not pick up the last imported library is JQuery especially if it isn't.

Regards, and Good luck!


All times are GMT. The time now is 10:40 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.02660 seconds
  • Memory Usage 1,801KB
  • 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
  • (9)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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