vBadvanced Forums   What's your passion?  Share it with the world!
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > Add-On Modules & Modifications > Add-On Modules

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2005, 03:08 PM
KW802's Avatar
KW802 KW802 is offline
Super Moderator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 4,681
Default [CMPS 2.x] vBa Gallery Module [Legacy version]

This module is for displaying vBa Gallery thumbnails on your CMPS 2.x pages.

Step #1: Modify {forums}/includes/vba_cmps_include_template.php

Look for:
PHP Code:
$phrasegroups array_merge($phrasegroups
array(
'calendar'
'adv_portal',
'postbit'
)
); 
... and replace with:
PHP Code:
$phrasegroups array_merge($phrasegroups
array(
'calendar'
'adv_portal',
'adv_gallery',
'postbit'
)
); 
Look for:
PHP Code:
$specialtemplates array_merge($specialtemplates
array(
'adv_modules',
'adv_portal_opts',
'adv_portal_page',
'attachmentcache',
'bbcodecache',
'birthdaycache',
'eventcache',
'iconcache',
'maxloggedin',
'rankphp',
'smiliecache',
'userstats'
)
); 
... and replace with:
PHP Code:
$specialtemplates array_merge($specialtemplates
array(
'adv_modules',
'adv_portal_opts',
'adv_portal_page',
'attachmentcache',
'bbcodecache',
'birthdaycache',
'eventcache',
'iconcache',
'maxloggedin',
'rankphp',
'smiliecache',
'userstats',
'adv_gallery_opt',
'gallery_c_cache',
'gallery_ugroups'
)
); 
Step #2: Create a new template named "adv_portal_gallery_random"
Quote:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_gallery_random')">
<img id="collapseimg_forumhome_gallery_random" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" alt="" border="0"/>
</a>
<span class="smallfont"><strong>$vba_options[portal_blockbullet] <a href=" $vboptions[homeurl]/gallery/index.php">$mods[title]</strong></a>
</span>
</td>
</tr>
</thead>
<tbody id="collapseobj_forumhome_gallery_random" style="$vbcollapse[collapseobj_forumhome_gallery_random]">
<tr>$randomimagebits</tr>
</tbody>
</table>
<br />
Step #3: Upload the attached file to your {forums}/modules folder

Step #4: Create a new module
  • Module Title = Random Gallery
  • Column = {your choice}
  • Active = Yes
  • File to Include = gallery_random.php
  • Templates Used = adv_portal_gallery_random, adv_gallery_imagebit
Please note: A newer version of this module will be released shortly. This version is really meant as a quick solution for those people who will be upgrading from CMPS 1.x to this new version. The new version will take advantage of some of the CMPS 2.x features.
Attached Files
File Type: php gallery_random.php (3.9 KB, 961 views)
__________________
Kevin
vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to.

Sci-Fi Forums | vBulletin Arcade
vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help
Reply With Quote
  #2  
Old 06-03-2005, 03:12 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: [CMPS 2.x] vBa Gallery Module

Where's the .module file so I can just upload it?
__________________
My Blog
GPS Discussion Forum

*** Please do not contact me privately for help. Thanks. ***
Reply With Quote
  #3  
Old 06-03-2005, 03:18 PM
KW802's Avatar
KW802 KW802 is offline
Super Moderator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 4,681
Default Re: [CMPS 2.x] vBa Gallery Module

Quote:
Originally Posted by ConqSoft
Where's the .module file so I can just upload it?
Read the last part.
__________________
Kevin
vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to.

Sci-Fi Forums | vBulletin Arcade
vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help
Reply With Quote
  #4  
Old 06-03-2005, 05:09 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 30,846
Default Re: [CMPS 2.x] vBa Gallery Module

Quote:
Originally Posted by ConqSoft
Where's the .module file so I can just upload it?
It's going to be so nice once 2.0 has been out for a few weeks or so and this forum is filled with .module files.
Reply With Quote
  #5  
Old 06-03-2005, 05:55 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: [CMPS 2.x] vBa Gallery Module

But a module like this will still require manual PHP changes, right? Or can it be done without requiring those?

(Also, did you add .module as an allowed attachment type? )
__________________
My Blog
GPS Discussion Forum

*** Please do not contact me privately for help. Thanks. ***
Reply With Quote
  #6  
Old 06-03-2005, 06:00 PM
LEAD_WEIGHT's Avatar
LEAD_WEIGHT LEAD_WEIGHT is offline
Senior Member
 
Join Date: Mar 2005
Posts: 307
Default Re: [CMPS 2.x] vBa Gallery Module

Does this belong in Add-On Modules or Hacks & Other Modifications
__________________
User Name : test
Password : test
www.theundergroundsource.com
Reply With Quote
  #7  
Old 06-03-2005, 06:18 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 30,846
Default Re: [CMPS 2.x] vBa Gallery Module

Quote:
Originally Posted by ConqSoft
But a module like this will still require manual PHP changes, right? Or can it be done without requiring those?

(Also, did you add .module as an allowed attachment type? )
Just the changes to the /includes/vba_cmps_include_template.php file. The rest of the stuff will be handled with the .module file. And I just added .module files to the allowed extensions.
Reply With Quote
  #8  
Old 06-03-2005, 06:19 PM
KW802's Avatar
KW802 KW802 is offline
Super Moderator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 4,681
Default Re: [CMPS 2.x] vBa Gallery Module

Quote:
Originally Posted by ConqSoft
But a module like this will still require manual PHP changes, right? Or can it be done without requiring those?
Yes & no. The new version won't require anybody to modify the module's PHP anymore but they'll still have to do the one-time changes to the includes file to pick up the templates.

Quote:
Originally Posted by ConqSoft
(Also, did you add .module as an allowed attachment type? )
Good thought!
__________________
Kevin
vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to.

Sci-Fi Forums | vBulletin Arcade
vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help
Reply With Quote
  #9  
Old 06-03-2005, 06:22 PM
tomshawk's Avatar
tomshawk tomshawk is offline
tech-unity.com
 
Join Date: Jun 2004
Posts: 447
Default Re: [CMPS 2.x] vBa Gallery Module

Man, this version looks awesome brian.

I cant believe there is an addon module already

Kuddos

Keep up the great work
__________________



Reply With Quote
  #10  
Old 06-03-2005, 06:24 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: [CMPS 2.x] vBa Gallery Module

I must be in retard mode today.. What exactly does this do? I already have a random thumb display on my portal and on my forumhome, where does this display them? On the custom pages? Or does this replace the one I have?
Reply With Quote
  #11  
Old 06-03-2005, 06:33 PM
KW802's Avatar
KW802 KW802 is offline
Super Moderator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 4,681
Default Re: [CMPS 2.x] vBa Gallery Module

Quote:
Originally Posted by mholtum
I must be in retard mode today.. What exactly does this do? I already have a random thumb display on my portal and on my forumhome, where does this display them? On the custom pages? Or does this replace the one I have?
I guess I should've explained..... In step #1 above those changes were made to your "global.php" file which means if somebody upgrades from CMPS 1.x to CMPS 2.x and removes the code per the upgrade instructions then your random Gallery module will come to a crashing halt. Now in step #1 the changes are made to a CMPS 2.x only file. I have a new shiny version of the Gallery module being worked on that takes advantage of CMPS 2.x but in the meantime I needed to get the above instructions out there so that people using the old version of the random gallery file can upgrade to CMPS 2.x and still be able to use the module.

In a nutshell: If you currently use a random/newest/whatever version of the Gallery module with CMPS 1.x then it will stop working when you upgraded to CMPS 2.x unless you do step #1 above.
__________________
Kevin
vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to.

Sci-Fi Forums | vBulletin Arcade
vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help
Reply With Quote
  #12  
Old 06-03-2005, 06:43 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Mine works... and I didnt do any of that. Oh well. I guess I am blessed.
Reply With Quote
  #13  
Old 06-03-2005, 06:58 PM
KW802's Avatar
KW802 KW802 is offline
Super Moderator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 4,681
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Quote:
Originally Posted by mholtum
Mine works... and I didnt do any of that. Oh well. I guess I am blessed.
That means you didn't do step #1 of the upgrade instructions.
__________________
Kevin
vBadvanced Support -- For vBa assistance, please use the support forums... unsolicted PMs, IMs, and email will not be responded to.

Sci-Fi Forums | vBulletin Arcade
vBulletin Users | vBulletin Styles | vBulletin SEO | Digital Photography Help
Reply With Quote
  #14  
Old 06-03-2005, 07:28 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Step 1:
Quote:
1). Upload the new files that came with this package over your existing ones.
2). Go to http://yoursite.com/forum/admincp/vb...ry_install.php in your browser and select the option to upgrade.
Yes I did, or I wouldnt be running it. I just went through and rechecked to see if I missed any edits and nope. odd

Last edited by mholtum; 06-03-2005 at 07:34 PM.
Reply With Quote
  #15  
Old 06-03-2005, 07:30 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
Senior Member
 
Join Date: Jan 2004
Location: Raleigh, NC
Posts: 1,364
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

If you uploaded all the files, you would get an error until you re-do those file changes. (I know, because it happened to me after I upgraded to RC1.)

Sounds like you didn't upload the new /includes/vba_cmps_include_template.php that comes with CMPS 2.0.
__________________
My Blog
GPS Discussion Forum

*** Please do not contact me privately for help. Thanks. ***
Reply With Quote
  #16  
Old 06-03-2005, 07:34 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 30,846
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Quote:
Originally Posted by mholtum
Step 1:


Yes I did, or I wouldnt be running it.
They were referring to the upgrade instructions for vBa CMPS, not the gallery.
Reply With Quote
  #17  
Old 06-03-2005, 07:35 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

everything was uploaded...
Reply With Quote
  #18  
Old 06-03-2005, 07:36 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 30,846
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Quote:
1). In your forum/global.php file:

Find:
PHP Code:
if (defined('VBA_PORTAL'))
{
    
$phrasegroups array_merge($phrasegroups
        array(
            
'calendar'
            
'adv_portal',
            
'postbit'
        
)
    );

    
$specialtemplates array_merge($specialtemplates
        array(
            
'adv_modules',
            
'adv_portal_opts',
            
'attachmentcache',
            
'bbcodecache',
            
'birthdaycache',
            
'eventcache',
            
'iconcache',
            
'maxloggedin',
            
'smiliecache',
            
'userstats'
        
)
    );
    
    
$globaltemplates array_merge($globaltemplates,
        array(
            
'adv_portal',
            
'adv_portal_footer'
        
)
    );

Replace With:
PHP Code:
if (defined('VBA_PORTAL'))
{
    require_once(
'./includes/vba_cmps_include_template.php');

Reply With Quote
  #19  
Old 06-03-2005, 07:41 PM
mholtum's Avatar
mholtum mholtum is offline
I ******* single moms.
 
Join Date: May 2004
Location: Tempe, Arizona
Posts: 1,924
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Brian, isnt that what you fixed for me via a trouble ticket?
Reply With Quote
  #20  
Old 06-03-2005, 07:49 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 30,846
Default Re: [CMPS 2.x] vBa Gallery Module [Legacy version]

Actually, I think I had assumed that you already made the changes to your global.php file and were just having problems with the vba_cmps_include_template.php file. Since I still have your ticket open though I went ahead and made that change to your global.php file for you as well.
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
bugfree version of vBadvanced CMPS v1.0.0? Richard Feedback & Suggestions 8 12-14-2004 12:11 AM
TGA - the CMPS version. Syn Show off your vBadvanced! 7 06-21-2004 09:35 PM
Basic Module (My Version) ashly Add-On Modules & Modifications 6 06-04-2004 11:37 AM


All times are GMT -4. The time now is 12:39 PM.

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.