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)

Aramist 07-30-2011 06:10 PM

Works Fine !!

Ty again Dude !

Cya

The Rocketeer 07-31-2011 02:52 PM

great work on the slider Moof. thank you very much. I have been following the topic since my original post back at the slider request fund gathering topic.

anyhow, i had some questions and suggestions.

1. Are we able to select which articles to display on the slider? maybe have an option in the acp or somewhere so we can just enter the article numbers / ids / urls and it will go get them?

2. Also maybe you could try to enhance it a bit? make it faster and lite so it doesn't end up slowing down our forums(not that it does that but just a suggestion.)

3. Lets say the first image is a verticle rectangle instead of the horizontal one. lets say my articles first image is 200px wide and 500px high but my second image is ideal, 600px wide x 400px high. Can we program it to fetch the second image instead(if the first one is too small and if a second one exists and is bigger / proper size?)

these are some of the many things i wanted to ask and suggest, i hope you'd have a look through them all. :)

Mooff 07-31-2011 03:30 PM

thanks


1.
Yes, that is possible. Actually this is kinda running on our board. We are using a hybrid system where a) a maximum of 2 articles per section are added into the slider b) tournaments (from our self coded tournament system) gain a value-bonus c) an extra query in a special database checks whether the article should be in there definitely or not at all d) articles are not allowed to be older than 40 days. All points are interconnected via the value function and it probably will be extended if the vbseo like system we activated today is used sensible by our users.

What a board needs there is highly dependend on the board itself. So i won't add something like this as default behaviour. In addition if you just want 'those' articles and nothing else the database query can be optimized for that need.

Long story short, as said in the first topic. If someone wants a customized query i need to know what exactly they want and i can try to come up with some code for it. No promises though. =) (these special queries will then be linked in the FAQ in post two, a category based one is allready in there, so as a work around you could use that one and add the articles you need in there, or remove them when the time comes for that).


2. The slider is blazing IF it can load all data out of the cms cache system - and i can't speed that one up*. Running the database query and saving pictures and rebuilding the output is not that fast. But, that does not have to be done often. Considering point 1, you want only articles in there which you specify in the code, you don't need it to update at all. So set the cache time for the slider to over 9000 (well or more). And rebuild it (clear cms cache) every time you change the article ids.


3. As for preview pictures. I won't comment on that one until i know what vbulletin changed in 4.1.5 (jira said they are doing something to preview pictures).


*well not in this addon anyway ;)

The Rocketeer 08-01-2011 05:35 AM

Quote:

Originally Posted by Mooff (Post 2227270)
thanks


1.
Yes, that is possible. Actually this is kinda running on our board. We are using a hybrid system where a) a maximum of 2 articles per section are added into the slider b) tournaments (from our self coded tournament system) gain a value-bonus c) an extra query in a special database checks whether the article should be in there definitely or not at all d) articles are not allowed to be older than 40 days. All points are interconnected via the value function and it probably will be extended if the vbseo like system we activated today is used sensible by our users.

What a board needs there is highly dependend on the board itself. So i won't add something like this as default behaviour. In addition if you just want 'those' articles and nothing else the database query can be optimized for that need.

Long story short, as said in the first topic. If someone wants a customized query i need to know what exactly they want and i can try to come up with some code for it. No promises though. =) (these special queries will then be linked in the FAQ in post two, a category based one is allready in there, so as a work around you could use that one and add the articles you need in there, or remove them when the time comes for that).


2. The slider is blazing IF it can load all data out of the cms cache system - and i can't speed that one up*. Running the database query and saving pictures and rebuilding the output is not that fast. But, that does not have to be done often. Considering point 1, you want only articles in there which you specify in the code, you don't need it to update at all. So set the cache time for the slider to over 9000 (well or more). And rebuild it (clear cms cache) every time you change the article ids.


3. As for preview pictures. I won't comment on that one until i know what vbulletin changed in 4.1.5 (jira said they are doing something to preview pictures).


*well not in this addon anyway ;)


Thanks Mooff,


1. So yes, as for the customized query, What I am wanting is not a category based one but maybe an option with a YEs / No and a box somewhere in the Admin CP so we can login and click that option, set it to yes(?) and enter article ID's numbers with commas (,) eg, 178,162,78 and it will only show those articles.

2. Yes, exactly, I want to spesify the articles that should be displayed on the slider, so I dont need it to automatically update anything as I will probably do it myself once every couple of weeks depending on which article I want to feature. So some instructions on that would be great, as we can probably cut down some database querys etc.

3. No proiblem we will see that later on,

But at the moment the first and second feature is what I and a lot of others could really use to define what articles we want to display manually. Hope you can look into it and post some instructions on your second post / F.A.Q for us. Really looking forward to this, so please let me know or if I sounded a bit confusing. :D

Thanks again and do let me know :)

The Rocketeer 08-02-2011 12:51 AM

I'm getting this error Mooff :(

Code:

// DEBUG MODUS ! $debug_modus = false; if($debug_modus === false)  '

Mooff 08-02-2011 06:37 AM

On first glance it looks like you are using the wrong widget type. Html static instead of php execute.

Please check (or create a new widget) from type php execution and insert the code again.

The Rocketeer 08-02-2011 10:26 AM

Thanks, Looks like I missed that one. Seems to be okay now, But its using the fallback image, its not pulling images from the articles? something I missed ? (Sorry, but I cant seem to get much help from the FAQ I am afraid.) :(

Mooff 08-02-2011 10:50 AM

Last question. :P

Q: My question wasn't answered in this FAQ
A: Please set the slider into debug mode via $debug_modus = true;
You then should see debug messages, which might point you in the right direction.
If that doesn't help. Post in the thread and please provide above debug and very detailed information what doesn't work and what you want.


Debug will help me a great deal finding out what's amiss. :D


As for the specific articles. I will rewrite the query to account for that, basecially i know what to do, but i can't type that out of my head and give it to you untested. Should find some time during the next days for that.

The Rocketeer 08-02-2011 10:59 AM

Hahaha lol :D

looks like I missed that one too, :p here is the debug code I got..

Code:

DEBUG MODE is ON!
slider_img_filepath: public_html/frontpage_nivo_slider/
width: 650 height: 250
show_articles_without_image:
fallback_img: public_html/frontpage_nivo_slider/uf_fallback_slider.png
#img: 5
description_length: 95

Warning: imagejpeg() [function.imagejpeg]: Unable to open '[path]/public_html/frontpage_nivo_slider/slide_0.jpg' for writing: No such file or directory in [path]/packages/vbcms/widget/execphp.php(191) : eval()'d code on line 165


Mooff 08-02-2011 11:13 AM

The folder public_html/frontpage_nivo_slider/ is not writeable for the user/group your webserver is in.

chmod777 that directory and it should work.


All times are GMT. The time now is 04:50 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.01530 seconds
  • Memory Usage 1,754KB
  • 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
  • (2)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