vBadvanced Forums   Click here for instant community!
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > Add-On Modules

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2005, 07:45 PM
Zachariah's Avatar
Zachariah Zachariah is offline
Zack
 
Join Date: Apr 2004
Location: Canoga Park, CA
Posts: 100
Default Add vBA Gallery Images to your CMPS

/* -----------------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
Attached Images
File Type: gif ss.gif (10.4 KB, 939 views)
__________________
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.
Reply With Quote
  #2  
Old 10-23-2005, 07:51 PM
Zachariah's Avatar
Zachariah Zachariah is offline
Zack
 
Join Date: Apr 2004
Location: Canoga Park, CA
Posts: 100
Default Re: Add vBA Gallery Images to your CMPS

- It's limited @ the moment.


This will work if you want a list on the Sides.

Quote:
image
*space*
image
*space*
image
*space*
image
*space*


In the template "adv_portal_gallery_random" look for:
PHP Code:
$randomimagebits 
... and replace it with:

PHP Code:
<tr><td class="alt1" align="center">$randomimagebits</td></tr
Now in the "gallery_random.php" module itself look for:

PHP Code:
$randomimagebits .= construct_imagebits($images); 
... and replace it with:

PHP Code:
$images['url'] = construct_image_url($images'thumbname');
$randomimagebits .= '<a href="' $vba_options['gallery_url'] . '/showimage.php?' $vbulletin->session->vars['sessionurl'] . 'i=' $images[imageid] . '"><img alt="' $images[title] . '" border="0" src="' $images[url] . '" /></a><br /><br/>'
Attached Images
File Type: jpg vss.jpg (7.2 KB, 297 views)
__________________
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.
Reply With Quote
  #3  
Old 10-23-2005, 09:32 PM
tbroush tbroush is offline
Junior Member
 
Join Date: Oct 2005
Posts: 8
Default Re: Add vBA Gallery Images to your CMPS

awesome installed works perfectly
Reply With Quote
  #4  
Old 10-24-2005, 10:19 AM
Zachariah's Avatar
Zachariah Zachariah is offline
Zack
 
Join Date: Apr 2004
Location: Canoga Park, CA
Posts: 100
Default Re: Add vBA Gallery Images to your CMPS

Quote:
Originally Posted by tbroush
awesome installed works perfectly
Glad it helped
__________________
http://www.szone.us/ | http://www.gzhq.net/

My:Hacks @ vBulletin.org
Volunteer Support @ vBulletin.org
Reply With Quote
  #5  
Old 10-24-2005, 11:08 AM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Add vBA Gallery Images to your CMPS

well it's not working here ..i m not even getting an error. hmm...
Reply With Quote
  #6  
Old 10-24-2005, 12:53 PM
pbjunkie pbjunkie is offline
Junior Member
 
Join Date: Jun 2004
Location: Charleston, SC
Posts: 18
Default Re: Add vBA Gallery Images to your CMPS

make sure you have checked the Gallery Module in the enabled modules section under "Edit Pages" - "Default/Homepage".
Reply With Quote
  #7  
Old 10-24-2005, 06:14 PM
easyskillz easyskillz is offline
Member
 
Join Date: Jan 2005
Posts: 85
Default Re: Add vBA Gallery Images to your CMPS

yup done ..so wierd :/
Reply With Quote
  #8  
Old 10-24-2005, 09:37 PM
pennylessz28's Avatar
pennylessz28 pennylessz28 is offline
Web Developer
 
Join Date: Mar 2004
Location: Virginia Beach, VA, USA
Posts: 222
Default Re: Add vBA Gallery Images to your CMPS

I admit to being stupid.
__________________
Mike Key - Lost and Confused

Last edited by pennylessz28; 10-24-2005 at 09:42 PM.
Reply With Quote
  #9  
Old 10-26-2005, 06:07 PM
phifou2 phifou2 is offline
Junior Member
 
Join Date: Oct 2005
Posts: 9
Default Re: Add vBA Gallery Images to your CMPS

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:
foreach ($gallery_permissions["$usergroupid"] AS $option => $value)

Last edited by phifou2; 10-26-2005 at 06:12 PM.
Reply With Quote
  #10  
Old 10-26-2005, 09:36 PM
Mellow Mellow is offline
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default Re: Add vBA Gallery Images to your CMPS

Quote:
Originally Posted by phifou2
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

I get the same error.
Reply With Quote
  #11  
Old 10-26-2005, 10:27 PM
e-steki's Avatar
e-steki e-steki is offline
Senior Member
 
Join Date: Jul 2005
Location: Greece
Posts: 168
Default Re: Add vBA Gallery Images to your CMPS

Quote:
Originally Posted by Harrybutt
- It's limited @ the moment.
Any progress on it not being limited? I am just asking, not moaning, there is no problem if you haven't looked into it yet
__________________
www.e-steki.gr | www.mycat.gr
Reply With Quote
  #12  
Old 10-28-2005, 12:39 AM
Zachariah's Avatar
Zachariah Zachariah is offline
Zack
 
Join Date: Apr 2004
Location: Canoga Park, CA
Posts: 100
Default Re: Add vBA Gallery Images to your CMPS

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
Reply With Quote
  #13  
Old 11-02-2005, 08:13 AM
cbr929rrerion cbr929rrerion is offline
Member
 
Join Date: Oct 2005
Posts: 66
Default Re: Add vBA Gallery Images to your CMPS

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..
Reply With Quote
  #14  
Old 11-04-2005, 04:41 PM
stevemcqueen stevemcqueen is offline
Junior Member
 
Join Date: Aug 2005
Posts: 2
Default Re: Add vBA Gallery Images to your CMPS

Quote:
Warning: Invalid argument supplied for foreach() in /modules/gallery_random.php on line 83

Warning: array_keys(): The first argument should be an array in /includes/functions_gallery.php on line 427

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 427
What's wrong?
Reply With Quote
  #15  
Old 11-06-2005, 06:54 PM
Sanjiyan Sanjiyan is offline
Member
 
Join Date: Apr 2004
Posts: 69
Default Re: Add vBA Gallery Images to your CMPS

installed, it does not show anything, not even a empty box or nothing. Anyon ehave any ideas? Nothing is showing on the home page.....
Reply With Quote
  #16  
Old 11-07-2005, 12:34 PM
ge66 ge66 is offline
Junior Member
 
Join Date: Jun 2004
Posts: 24
Default Re: Add vBA Gallery Images to your CMPS

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?
Reply With Quote
  #17  
Old 11-17-2005, 09:03 PM
Mellow Mellow is offline
Junior Member
 
Join Date: Feb 2004
Posts: 16
Default Re: Add vBA Gallery Images to your CMPS

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
Reply With Quote
  #18  
Old 12-07-2005, 09:22 PM
trackpads trackpads is offline
Senior Member
 
Join Date: Oct 2004
Posts: 118
Default Re: Add vBA Gallery Images to your CMPS

Excellent!
__________________
Reply With Quote
  #19  
Old 12-09-2005, 12:20 AM
pennylessz28's Avatar
pennylessz28 pennylessz28 is offline
Web Developer
 
Join Date: Mar 2004
Location: Virginia Beach, VA, USA
Posts: 222
Default Re: Add vBA Gallery Images to your CMPS

Works like a champ again. Bravo
__________________
Mike Key - Lost and Confused
Reply With Quote
  #20  
Old 12-10-2005, 06:39 PM
dieselpowered dieselpowered is offline
TeryxHQ.com
 
Join Date: Sep 2004
Location: Peoria, AZ
Posts: 229
Default Re: Add vBA Gallery Images to your CMPS

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
Reply With Quote
Reply


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

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

Forum Jump

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


All times are GMT -4. The time now is 11:41 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd. ?&AID=10293998&PID=1523465
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.