![]() |
|
|
#1
|
||||
|
||||
|
/* -----------------10/23/2005 5:00 PM -----------------
Add Gallery Images to your CMPS v1.0 (vB 3.5) Tested on: vBulletin 3.5.0 vBadvanced Gallery v1.0.1 (vB 3.5) vBadvanced CMPS v2.0.0 (vB 3.5) Zachariah - http://www.gzhq.net 1 file edit Upload file Create Module Make 1 template Demo Support ![]() -------------------------------------------------*/ *** How to Install: 1) Edit your vBadvanced CMPS: (not the forums/index.php) - cmps_index.php file (you may have a different name) By default: $phrasegroups = array(); $specialtemplates = array(); Change to: $phrasegroups = array('adv_gallery'); $specialtemplates = array('adv_gallery_opt','gallery_c_cache','gallery_ugroups'); 2) modules/gallery_random.php // If you HASH out "$catlimit" images will pull from all categories. // Useage: $catlimit = 3,5,10,30,70; // $catlimit = 3; // Enter 1 newest, 2 most viewed, 3 most comments, 4 highest rated, 5 random. $galleryorderby = 5; Added Extra Options // If you DON'T want these fields to show then value = "0" (zerro) $showfields['title'] = 0; $showfields['description'] = 0; $showfields['rating'] = 0; $showfields['user'] = 0; $showfields['dateline'] = 0; $showfields['views'] = 0; $showfields['dimensions'] = 0; $showfields['filesize'] = 0; $showfields['posts'] = 0; $showfields['lastpost'] = 0; $show['category'] = 0; 3) AdminCP => vBa CMPS => Add Module => [PHP FILE] Module Title: Image Gallery Active: yes Update All Pages: your choice File to Include: gallery_random.php Identifier: gallery_image Templates Used: adv_portal_gallery_random Clean File Output: no Use Module Shell Template: yes Title Row Colspan: image count (you choose a value) Usergroups: you choose who [SAVE] 4) AdminCP => Styles & Templates => Style Manager => Use dropdown on Style => Add New Template Product: vBulletin Style: Choose Style Title: adv_portal_gallery_random Template: $randomimagebits The only thing inside the template is the value: $randomimagebits Save. If you did not put the Module on all pages you need to: AdminCP => vBa CMPS => Edit Pages => Choose the page => Edit => Modules Enabled => add Check to => Image Gallery Save. Updates here. http://www.vbulletin.org/forum/showt...threadid=98982
__________________
http://www.szone.us/ | http://www.gzhq.net/ My:Hacks @ vBulletin.org Volunteer Support @ vBulletin.org Last edited by Zachariah; 01-06-2006 at 11:11 AM. |
|
#2
|
||||
|
||||
|
- It's limited @ the moment.
This will work if you want a list on the Sides. Quote:
In the template "adv_portal_gallery_random" look for: PHP Code:
PHP Code:
PHP Code:
PHP Code:
__________________
http://www.szone.us/ | http://www.gzhq.net/ My:Hacks @ vBulletin.org Volunteer Support @ vBulletin.org Last edited by Zachariah; 10-23-2005 at 07:54 PM. |
|
#3
|
|||
|
|||
|
awesome installed works perfectly
|
|
#4
|
||||
|
||||
|
Quote:
__________________
http://www.szone.us/ | http://www.gzhq.net/ My:Hacks @ vBulletin.org Volunteer Support @ vBulletin.org |
|
#5
|
|||
|
|||
|
well it's not working here ..i m not even getting an error. hmm...
|
|
#6
|
|||
|
|||
|
make sure you have checked the Gallery Module in the enabled modules section under "Edit Pages" - "Default/Homepage".
|
|
#7
|
|||
|
|||
|
yup done ..so wierd :/
|
|
#8
|
||||
|
||||
|
I admit to being stupid.
__________________
Mike Key - Lost and Confused Last edited by pennylessz28; 10-24-2005 at 09:42 PM. |
|
#9
|
|||
|
|||
|
It runs nice but I have an error warning at the top of CPMS :
"Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83" and my line 83 is Quote:
Last edited by phifou2; 10-26-2005 at 06:12 PM. |
|
#10
|
|||
|
|||
|
Quote:
I get the same error. |
|
#11
|
||||
|
||||
|
Quote:
|
|
#12
|
||||
|
||||
|
all support to here please
http://www.vbulletin.org/forum/showthread.php?t=98982
__________________
http://www.szone.us/ | http://www.gzhq.net/ My:Hacks @ vBulletin.org Volunteer Support @ vBulletin.org |
|
#13
|
|||
|
|||
|
does anyone have a way do do it like the gallery does on the home page, have 1 row showing newest and one row showing random..
|
|
#14
|
|||
|
|||
|
Quote:
|
|
#15
|
|||
|
|||
|
installed, it does not show anything, not even a empty box or nothing. Anyon ehave any ideas? Nothing is showing on the home page.....
|
|
#16
|
|||
|
|||
|
I have tried this one and other older ones, for me as admin it works and shows up, but other unregistered and registered members see nothing.
The module is set to show to everyone. Any idea about what can be wrong? |
|
#17
|
|||
|
|||
|
This works great for me however, I'd like to only show the category under the image and without the 'category' label, is there an easy way to remove it.. still a noob at php. thanks
|
|
#18
|
|||
|
|||
|
Excellent!
|
|
#19
|
||||
|
||||
|
Works like a champ again. Bravo
__________________
Mike Key - Lost and Confused |
|
#20
|
|||
|
|||
|
Works great, thanks! Any idea how to get the extra space out from the bottom of the module? So that it looks even.
__________________
www.SxSHQ.com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The simplest way to put the 12 newest images from gallery on my CMPS home page | Freeway | Add-On Modules & Modifications | 3 | 05-06-2005 01:13 PM |
| Suggestion: A simple way to put the newest images from gallery on my CMPS home page | Freeway | Feedback & Suggestions | 0 | 05-06-2005 01:12 PM |