vBulletin Modifications

Forum Display Enhancements - Random Thumbs Display (3.5.*, 3.6.*)

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > vBulletin Database System > vBulletin 3.5 / 3.6 Hack Releases

Reply
 
Thread Tools Search this Thread
Download Options
You Must Register First
To Download This Modification

Bugs
Uncached templates: randomimage
Posted By: Zachariah
Submit A Bug | View All Bugs

Advertisement
  
Supported
[vB 3.6.0 RC 2] Forum Display Enhancements - Random Thumbs Display (3.5.*, 3.6.*) (56)
Released: 08-03-2006, 08:25 AM
Modification Information:
Author: xyz
Last Online: 06-12-2007
Hack Version: 1.0.001 Installer Included: 0 Additional queries added to database: 1
New Templates: 2 Template Edits: 1 File Edits: 2
New Files: 1 New Phrases: 24 Installation Time (In Minutes): 5

Plugin
Random Thumbs Display (Version 1.0.002)

ALL READY vBulletin 3.5.4, 3.6.0 tested, all working fine!


This mod was a request by MaxM, with this mod you can display (###) of image thumbnails anywhere and on any page in your forum. The output can be placed in template by just adding the condition, to the template you want the thumbnail images to be displayed!

The control works with each user group, so you can turn it (on) for one group while having it turned (off) for others.

Options

Turn (off, on) per user group
Show this (###) of thumbnails
How many to show per row (###)
Display on all page (yes, no)
If (do not display) on all pages [input => pages to show the thumbnails] (clickable select box with all forum pages)
Show extended information (yes, no)
Create Image Link (yes, no) [should the thumbnail be made into a URL link]
If (create link = yes) (select box options => point to topic, point to post, point to full size attachment)

Screens

prems.png

This image show the User group Permissions for the random image control!

display_noinfo.png

This shows the display with no extened info, the display is add to the FORUMHOME template for this example, then by doing a simple condition you get the display loaded...


You must first be a registered member to view any code.

display_info.png

This shows the display with extened info, the display is add to the FORUMHOME template for this example, then by doing the same simple condition as above you get the display loaded...



New Version 1.0.002

Added global scope to the random_image templates (now they are cached, no extra query)
Added new templates that maintain a nice uniformed display!
Added (dynamic) [colspan(s), width(s)] so now the display looks much nicer (evenly spaced)


The zip file in this post contains Version 1.0.002


UPGRADE Version 1.0.001 to 1.0.002

Same version as above, but if you already have 1.0.001 installed, then you only need to replace the templates and add (1) script edit, then replace (1) include file (functions_randomize.php) so it matches the new template variables!

Find that zip file by following this link!

http://www.vbhackers.com/showthread....4073#post34073


New Display

Added another image so you can see how things now look more centered, it's all dynamic, based on how many images to display and how many rows!

new_display.png




c, ya

me!



Screenshots
Screenshots
File Type: png perms.png (21.1 KB, 195 views)
File Type: png display_noinfo.png (70.7 KB, 256 views)
File Type: png display_info.png (73.1 KB, 139 views)
File Type: png new_display.png (80.2 KB, 165 views)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Add a Comment!
Old 08-05-2006, 09:23 AM   #11
vB User
MaxM's Avatar
Join Date: Jun 2006
MaxM is on a distinguished road

Default

After uploading new files, editing and replacing all files (and after doing sql edits) , when i try to login to admincp or on forum index i am getting this error:
Quote:
Warning: main(/home/*****/public_html/****/testboard./includes/functions_randomize.php): failed to open stream: No such file or directory in /global.php on line 21

Warning: main(): Failed opening '/home/*****/public_html/****/testboard./includes/functions_randomize.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /global.php on line 21

Fatal error: Call to undefined function: image_container() in /home/*****/public_html/****/testboard/global.php on line 737
Now only new template uploading was left!

Any sol.?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08-05-2006, 10:11 AM   #12
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

Quote:
Originally Posted by MaxM
After uploading new files, editing and replacing all files (and after doing sql edits) , when i try to login to admincp or on forum index i am getting this error:


Now only new template uploading was left!

Any sol.?

In 'global.php' in your forum directory, open it up!

change this....

You must first be a registered member to view any code.
to this...

You must first be a registered member to view any code.
On the Linux server I tested this on I need to put (.) before '/includes...' It seems to not be the case for others. So just change what I said to do above, and you will be just fine after that!

The CVS system is for my mods, it allows for adding and removing mods, via the admin cp, all you do is upload the the mod.gz, and it installs or unistalls the mod, plus it allows for editing and keeping track of the edits using a version control system!


me!

Last edited by xyz; 08-05-2006 at 10:14 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2006, 10:48 AM   #13
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default Update for hard-coded value and anchor tag!

This updates version 1.0.001 to 1.0.002, it also fixes any changes that may happened since you might have downloaded and installed version 1.0.001!



Sonia
Attached Files
File Type: zip random_update_1.0.1.zip (6.6 KB, 17 views)

Last edited by xyz; 08-06-2006 at 02:43 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2006, 12:37 PM   #14
vB User
MaxM's Avatar
Join Date: Jun 2006
MaxM is on a distinguished road

Default

Ok, now after following your instructions in last 2 posts, i can now login to admincp :classic:

But now, when editing usergroups i am getting errors on top and bottom and i don't see any options to check random images settings. Please check screenshots.

I have uploaded the template, merged with default template and also rebuilt all languages

:confused:
Attached Images
File Type: jpg Capture2.jpg (27.2 KB, 16 views)
File Type: jpg Capture.jpg (31.2 KB, 16 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2006, 01:31 PM   #15
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

Quote:
Originally Posted by MaxM
Ok, now after following your instructions in last 2 posts, i can now login to admincp :classic:

But now, when editing usergroups i am getting errors on top and bottom and i don't see any options to check random images settings. Please check screenshots.

I have uploaded the template, merged with default template and also rebuilt all languages

:confused:
Are you sure you placed 'adminfunctions_randomize.php' into your include directory!

There are (2) scripts that belong in the includes directory!

1. functions_randomize.php (forum related) [found in the (forum) mod directory]
2. adminfunctions_randomize.php (admin related) [found in the (admin) mod directory]

they both need to be in....

You must first be a registered member to view any code.
The path is right, it's just saying that adminfunctions_randomize.php is not in the includes directory!


me!

Last edited by xyz; 08-05-2006 at 01:34 PM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-05-2006, 02:20 PM   #16
vBulletin Guru
Nick R's Avatar
Join Date: May 2006
Real Name: Nick
Location: Cyberspace, UK
Nick R is on a distinguished road

Default

looking good ;)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2006, 12:27 AM   #17
vB User
MaxM's Avatar
Join Date: Jun 2006
MaxM is on a distinguished road

Default

Everything seems to be working now :p

But now, while editing usergroups... check screeshots :nervous:

I think i am now missing some language phrases!

and when i save (after doing all settings from usergroup) it shows:
Quote:
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_randomize.php on line 66
Attached Images
File Type: jpg Capture(acp).jpg (51.3 KB, 10 views)

Last edited by MaxM; 08-06-2006 at 12:31 AM.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2006, 07:53 AM   #18
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

Quote:
Originally Posted by MaxM
Everything seems to be working now :p

But now, while editing usergroups... check screeshots :nervous:

I think i am now missing some language phrases!

and when i save (after doing all settings from usergroup) it shows:

First do what it says in the main install (read.txt) file under item (6)

Quote:
6.

Login to the Admin CP
A. Go To >> Languages & Phrases >> Language Manager >> Click >> [Rebuild All Languages]
Then go to UserGroup Manager and see if everything now shows up! If It does, then all is ok, if it doesn't we need to check if any of the phrases where really inserted into the database! Use the script attached to do this!

WARNING

Only do this after doing what I said above, and only do this if the phrases do not appear after trying what is above!

Ill attah the script in few minutes, I am writting it now!


me!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2006, 09:11 AM   #19
vB User
MaxM's Avatar
Join Date: Jun 2006
MaxM is on a distinguished road

Default

Hello Sonia... sorry once again that was my stupid mistake now its working

But while saving the settings in usergroup, it still show error message on top:
Quote:
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_randomize.php on line 66
But it still saves all the settings




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08-06-2006, 04:42 PM   #20
xyz
Coder
Join Date: Jul 2006
xyz is on a distinguished road

Default

Quote:
Originally Posted by MaxM
Hello Sonia... sorry once again that was my stupid mistake now its working

But while saving the settings in usergroup, it still show error message on top:


But it still saves all the settings

You missing something in the admin folder usergroup.php!




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Req. Mod] To display random attachment image's thumbnail on forum home MaxM vBulletin Modification Requests 17 07-31-2006 11:55 AM


All times are GMT -3. The time now is 09:21 AM.


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)