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 - CMS Widget - Latest files added to downloads II (https://vborg.vbsupport.ru/showthread.php?t=233632)

Vaupell 01-19-2010 10:00 PM

CMS Widget - Latest files added to downloads II
 
1 Attachment(s)
Vb 4 CMS Widget - Last 5 files added via downloads 2 product
released on 20-jan-2010

About :
Easy to use, just import product xml and add to your layout.

Requirements :
Must have DownloadsII installed.

Demo : Evisystems - Widget test section

Features :
Shows lastest files added to downloads II

Download : Attachment 111931

History :
20-jan-2010 : V 1.0 Released
20-jan-2010 : V 1.2.
21-jan-2010 : V 1.3.
09-feb-2010 : V 1.4.

Changelog :
v1.2 - Added links to the files
v1.3 - Added settings for the widget for title length and ammount of files listet.
v1.4 - Settings added for date format + Direct download options via adminCP

Installation instructions :
Import the product,
Add to your layout where you want it, just like any other widget.

Updateing :
Note : when updateding, it does not overwrite existing widget it adds a additional.
just delete the old one, as you would delete a wigdet normal.

1) Must : Uninstall product if you havent,
2) Then simply delete the old widget, or leave it.
3) follow install procedure, it always adds a new widget.

Plans for furture upgrades + bug's found :
- adding title length control to admincp options * complete and present in current
- adding downloadsII link to the files post/thread * complete and present in current
- settings for ammount of files listet added * complete and present in current
- option for date format in adminCP * complete and present in current
- option for direct download or link * complete and present in current
- no futher plans, got some idea's ? post them

Attachment 110520Attachment 110615Attachment 111932

kho91 01-20-2010 02:25 PM

thank you but why not includ the url for file? th's give only the name of file et not the url

sorry for my bad english

Vaupell 01-20-2010 02:29 PM

Quote:

Originally Posted by kho91 (Post 1961241)
thank you but why not includ the url for file? th's give only the name of file et not the url

sorry for my bad english

Added to suggestions/ideas

kho91 01-20-2010 02:33 PM

thank you ;-)

Morrus 01-20-2010 02:57 PM

Cool!

As a suggestion - perhaps include the thumbnail images of them? Or allow folks to display thumbnail of the first X in the list?

Morrus 01-20-2010 02:58 PM

Quote:

Originally Posted by kho91 (Post 1961241)
thank you but why not includ the url for file? th's give only the name of file et not the url

sorry for my bad english

Oh, it doesn't actually link to the file?

Vaupell 01-20-2010 03:05 PM

Quote:

Originally Posted by Morrus (Post 1961273)
Oh, it doesn't actually link to the file?

It does now! :p just uploaded a updated version

kho91 01-20-2010 05:09 PM

how can i increase number of caracters of file's name? (letters)

Vaupell 01-20-2010 06:06 PM

Quote:

Originally Posted by kho91 (Post 1961381)
how can i increase number of caracters of file's name? (letters)

well in your cms wigdet panel, click configure for the widget
find the line

$title = substr($getdls[title], 0, 15);

and change the number 15 to the ammount you want.

stationar 01-21-2010 02:05 AM

It doesn't work at all. Just shows the date: "20.01.2010"
Did I miss a step?
And also how do I change 5 files to 15?

Vaupell 01-21-2010 08:30 AM

Quote:

Originally Posted by stationar (Post 1961925)
It doesn't work at all. Just shows the date: "20.01.2010"
Did I miss a step?
And also how do I change 5 files to 15?

Simply cant reproduce that issue,
tryed on both apache server, and win2k nt and win2003 servers no luck reproduceing that
specifik problem where the links are blank..

Added options / settings in this version, you can now set the ammount of characters shown
from the title of the files. Also set the number of files displayed.

willy888 01-21-2010 09:52 AM

how can I make it apears in the forum's side widjets ?

Vaupell 01-21-2010 10:25 AM

Quote:

Originally Posted by willy888 (Post 1962183)
how can I make it apears in the forum's side widjets ?

well you cant, cause this is a widget those for the forumblock is called blocks..
so if you want it in the forum block you have to create a block and "maybe" copy the code
over into the new block, not sure it will work though..

CMS have widgets.
Forum have blocks.

and they dont work together.. [sarcastic] brilliant [/sarcastic]

Bram H 01-21-2010 10:28 AM

Beautiful!!

One suggestion: could the category name or abbrev be included? :

Cat X - File Name - Date?

Thanks, pressed installed very hard!

molieman 01-21-2010 10:35 AM

Excellent addition, Thank you :) :)

How can I change the date format?

tazattitude 01-21-2010 11:36 AM

Installed. Works great.

I would also like to see the date format changed though.
month/day/year
instead of day/month/year

Looking forward to seeing future versions!

Vaupell 01-21-2010 12:05 PM

Ahh ofcourse, i will make sure the date format change can be set in admin settings
so it suits your site and area.. :D

But for now, in the widget costumization there is a line called
Code:

$format = '%d/%m/%y';
you can change that in any way you like, %d = day %m = month %y = year .
I will ofcourse add this to the options panel, it should ofcourse be default
to set date format there..

tazattitude 01-21-2010 12:35 PM

Easy to change....Works like a champ
Thank you!

stationar 01-22-2010 12:13 AM

Quote:

Originally Posted by stationar
It doesn't work at all. Just shows the date: "20.01.2010"
Did I miss a step?

Still doesn't work... Here is my code:
PHP Code:

$output date(vB::$vbulletin->options['dateformat']) . "<br />\n"

That's all.

molieman 01-22-2010 09:53 AM

Quote:

Originally Posted by Vaupell (Post 1962254)
Ahh ofcourse, i will make sure the date format change can be set in admin settings
so it suits your site and area.. :D

But for now, in the widget costumization there is a line called
Code:

$format = '%d/%m/%y';
you can change that in any way you like, %d = day %m = month %y = year .
I will ofcourse add this to the options panel, it should ofcourse be default
to set date format there..


Duhhhhhh LOL..... Should of seen that :) :) :)

Thank you!!!!

stationar 01-22-2010 11:38 PM

Can somebody post here what should be in the widget customization by default? Please. I am struggling to make it work.

synseal 02-02-2010 01:47 PM

Any chance you could make one for Forum Blocks please.

Thanks.

210665 02-03-2010 11:00 AM

Hello
It is also possible that part of the incorporate in the Sideblock
Thanks
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx
Hallo
Besteht auch die Möglichkeit diesen Teil in die den Sideblock einzubauen
Danke

Vaupell 02-09-2010 08:19 AM

Quote:

Originally Posted by tazattitude (Post 1962241)
Installed. Works great.

I would also like to see the date format changed though.
month/day/year
instead of day/month/year

Looking forward to seeing future versions!

Added to vbsettings in this version see screenshot.

Quote:

Originally Posted by stationar (Post 1963914)
Can somebody post here what should be in the widget customization by default? Please. I am struggling to make it work.

could you explain a little further what the problem is ?

Vaupell 02-11-2010 11:47 AM

Quote:

Originally Posted by 210665 (Post 1973850)
Hello
It is also possible that part of the incorporate in the Sideblock
Thanks
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx
Hallo
Besteht auch die M?glichkeit diesen Teil in die den Sideblock einzubauen
Danke

Done - here --> https://vborg.vbsupport.ru/showthread.php?t=235596

SoltanWorld 04-06-2010 06:37 PM

Do you think about the wideget that shows the Latest Files from categories that administrator in ACP has set ?

For example : Latest Music, Latest Movie and ....

RockstarNetwork 04-25-2010 05:49 PM

I'm also only getting the date in the latest files widget as well as the most popular files widget. Looking at the PHP code when I click the configure link for the widget, the only thing it looks to be outputting is the date.

Code:

$output = date(vB::$vbulletin->options['dateformat']) . "<br />\n";
Should there be more code in there or is it pulling more information elsewhere?

lovevn 05-02-2010 04:33 PM

It does not work for me! I got security token error!

Vaupell 05-03-2010 01:29 PM

Quote:

Originally Posted by lovevn (Post 2030643)
It does not work for me! I got security token error!

This mod should not give security token error, it does not use send,get or post methods.
There must be some other conflict, this is plain old php database fetching,
and displaying through template.

i.s.s.w 07-05-2010 09:01 AM

YOU CAN UPDATE FOR vbadvanced CMPS

THAN X YOU

Lostboyfan 09-15-2011 07:54 PM

Quote:

Originally Posted by lovevn (Post 2030643)
It does not work for me! I got security token error!

Just take out this part of the code in the cms widget for the mod.

Find

&act=down

remove that and it should work.

mygitar 11-10-2011 05:21 PM

I think there is an error.

Files that are not yet approved, but it seems the widget.

Thanks.

Rolandinjos 11-28-2011 12:10 PM

1 Attachment(s)
How to remove php image from widget?

Thanks

Attachment 134755

Igel1 02-11-2012 07:33 PM

It also shows not shared files.
How can I change it?


All times are GMT. The time now is 03:42 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.01425 seconds
  • Memory Usage 1,815KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete