vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Add-On Modules & Modifications

 
 
Thread Tools Display Modes
  #1  
Old 05-27-2004, 03:56 AM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Collapsible modules - Updated for 1.0.0

I have modified all of the templates/files to allow all current modules to be collapsible using vBulletin's built-in functions.

the attached .zip file includes all of the vba_cmps files already modified, just extract them and replace the existing files with these (unless you have made any modifications to the existing files, in which case, you just need to compare these files with yours and make the necessary changes).

The file modified_templates.txt includes all of the modified templates (just copy and paste over the existing templates, unless you have already modified the existing templates, in which case, you just need to compare these templates with yours and make the necessary changes)

the file changes_to_functions_calendar_php.txt includes the changes made to the functions_calendar.php file.


I also had to modify 2 phrases so that the collapse image would fit better:

latest_ forum_ topics

changed from: Latest Forum Topics
to: Latest Threads

x_stats

changed from: {1} Statistics
to: {1} Stats

I updated the .zip file for VBA CMPS v1.0.0 (Gold)
Attached Images
File Type: png screenshot1.PNG (4.8 KB, 439 views)
File Type: png screenshot2.PNG (17.2 KB, 378 views)
File Type: png screenshot3.PNG (10.5 KB, 332 views)
Attached Files
File Type: zip vba_cmps_collapse.zip (16.2 KB, 313 views)

Last edited by Richard; 06-04-2004 at 09:28 AM.
  #2  
Old 05-27-2004, 07:26 AM
cLord's Avatar
cLord cLord is offline
T.A.F.K.A.M.
 
Join Date: Mar 2004
Posts: 124
Exclamation Omg!

This is awesome and in my opinion should be included in the final release!

Richard, I was going to try and create this next week! Can you read minds? LOL

Thank you Sir,
cLord

*EDIT*
converted my PayPal and Arcade News module...
If interested to see how it works: http://www.whoox.com

Last edited by cLord; 05-27-2004 at 10:18 AM. Reason: Update
  #3  
Old 05-27-2004, 03:11 PM
Hialls Hialls is offline
Junior Member
 
Join Date: May 2004
Posts: 20
Default Re: Collapsible modules

How would i add this to other modules? I've tried however the information is not saved after the page has been refreshed
  #4  
Old 05-27-2004, 05:45 PM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Collapsible modules

take a look here:

http://www.vbadvanced.com/forum/show...59&postcount=8

the part where these variables are added to the .php file just before where the template is fetched:

$collapseobj_custom_1 = $vbcollapse['collapseobj_custom_1'];
$collapseimg_custom_1 = $vbcollapse['collapseimg_custom_1'];

the variable names will probably be different, but this should give you an idea how to do it. What module are you trying to add this to?

Last edited by Richard; 05-27-2004 at 05:47 PM.
  #5  
Old 05-27-2004, 07:08 PM
Hialls Hialls is offline
Junior Member
 
Join Date: May 2004
Posts: 20
Default Re: Collapsible modules

Im trying to add a custom module as well as the weather module, cheers though ill try that out
  #6  
Old 05-28-2004, 10:56 AM
Lurk Lurk is offline
Junior Member
 
Join Date: Feb 2004
Posts: 17
Default Re: Collapsible modules

WOW
woohoo!!
i'm happy someone posted something like this
  #7  
Old 06-04-2004, 09:29 AM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Collapsible modules

The files in the .zip file have been updated for VBA CMPS v1.0.0 (Gold)
  #8  
Old 06-04-2004, 11:35 AM
ashly's Avatar
ashly ashly is offline
Member
 
Join Date: Mar 2004
Posts: 36
Default Re: Collapsible modules

Here a .zip file with 12 custom modules pre made by my for ppl that want to have those .php files fast.
Attached Files
File Type: zip modules.zip (3.1 KB, 158 views)
  #9  
Old 06-22-2004, 06:16 PM
bitg bitg is offline
Junior Member
 
Join Date: Jun 2004
Posts: 10
Default Re: Collapsible modules

Can somebody please tell me how to make the articles cmps module a collapsable one?
  #10  
Old 06-26-2004, 04:15 PM
58sniper 58sniper is offline
Member
 
Join Date: Apr 2004
Posts: 80
Default Re: Collapsible modules

I don't think tbody and thead are valid in XHTML. Also, there is some redundant/unneeded code.

I started noodling around and came up with this:
Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat smallfont" style="font-weight: bold;"><a style="float: $stylevar[right]" href="#" onclick="return toggle_collapse('forumhome_test');"><img src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_randomtopic].gif" width="13" height="12" border="0" alt="Collapse/Expand" /></a>$vba_options[portal_blockbullet] <a href="#">Test block</a></td>
</tr>
<tr id="collapseobj_forumhome_test" style="$vbcollapse[collapseobj_forumhome_randomtopic]">
<td class="alt1">
<!-- content goes here -->
</td>
</tr>
</table>
<br />
The items in red need to be changed for each module, and BOTH instances need to be the same. I typically just use the module name.

The dimensions in green are for the particular image that I use at http://www.efhs84.com/ - update to meet your needs.

Change the title and surrounding link accordingly.

I'm still cleaning up some of the style I'm using, but this SHOULD validate properly for XHTML 1.0 Transitional.
  #11  
Old 07-01-2004, 02:42 AM
HellRazor HellRazor is offline
Member
 
Join Date: Apr 2004
Posts: 31
Default Re: Collapsible modules

Anyone know how to make the above example default to a "collapsed" positon rather than an "expanded" position?
  #12  
Old 07-05-2004, 04:23 AM
Jason McConnell's Avatar
Jason McConnell Jason McConnell is offline
Senior Member
 
Join Date: Jun 2004
Location: Syracuse, NY
Posts: 170
Default Re: Collapsible modules - Updated for 1.0.0

Quote:
Originally Posted by Richard
I also had to modify 2 phrases so that the collapse image would fit better:

latest_ forum_ topics

changed from: Latest Forum Topics
to: Latest Threads

x_stats

changed from: {1} Statistics
to: {1} Stats

I got everything going except for the x_stats part.. I couldn't find it in the phrase manager. Is this something I have to add?
  #13  
Old 07-05-2004, 09:36 AM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Collapsible modules

This either changed in vbAdvanced CMPS or in vBulletin, but yes, looks like you need to add it now instead of changing the existing one. It doesn't seem to exist anymore.
  #14  
Old 07-05-2004, 09:42 AM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Collapsible modules

Quote:
Originally Posted by 58sniper
I don't think tbody and thead are valid in XHTML.
http://www.w3schools.com/xhtml/attr_thead.asp
  #15  
Old 07-05-2004, 04:58 PM
Jason McConnell's Avatar
Jason McConnell Jason McConnell is offline
Senior Member
 
Join Date: Jun 2004
Location: Syracuse, NY
Posts: 170
Default Re: Collapsible modules

OK I have the phrase x_stats in the vBCMPS section of my phrase manager... should it be global?
  #16  
Old 07-05-2004, 06:15 PM
minichip minichip is offline
Junior Member
 
Join Date: Jul 2004
Location: Frankfurt, Germany
Posts: 4
Default Re: Collapsible modules - Updated for 1.0.0

Hi,

I guess the modules Richard took where a few day old. just replace the "$vbphrase[x_stats]" in the "adv_portal_stats" template with "$vbphrase[x_statistics]" and everything will work again

Cheers,
Holger

Last edited by minichip; 07-05-2004 at 06:16 PM. Reason: typo
  #17  
Old 07-05-2004, 07:54 PM
Jason McConnell's Avatar
Jason McConnell Jason McConnell is offline
Senior Member
 
Join Date: Jun 2004
Location: Syracuse, NY
Posts: 170
Default Re: Collapsible modules

Thanks!! Works beautifully
  #18  
Old 07-06-2004, 12:14 AM
HellRazor HellRazor is offline
Member
 
Join Date: Apr 2004
Posts: 31
Default Re: Collapsible modules

Quote:
Originally Posted by HellRazor
Anyone know how to make the above example default to a "collapsed" positon rather than an "expanded" position?
*Bump* Anyone?
  #19  
Old 07-07-2004, 11:49 AM
Polo's Avatar
Polo Polo is offline
Senior Member
 
Join Date: Jun 2004
Posts: 823
Default Re: Collapsible modules

Quote:
Originally Posted by HellRazor
*Bump* Anyone?
i have no clue, i hope someone can answer this question since i'm interested...
__________________
God180.com <---------------------My heavily modified vBulletin board
  #20  
Old 07-07-2004, 08:23 PM
Richard Richard is offline
Member
 
Join Date: Jan 2004
Location: South Texas
Posts: 75
Default Re: Collapsible modules

here is an example:

http://www.vbulletin.com/forum/showt...llapse+default

So, you'd need to edit the template for the item you want to be collapsed by default and set the style to display:none;
 


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
create new modules Zedd Troubleshooting / "How do I..." Questions 14 08-14-2004 07:23 PM
Edit Modules idea Zachariah Feedback & Suggestions 0 05-24-2004 10:48 AM
Adding new pages, modules, templates for dummies. Pro Troubleshooting / "How do I..." Questions 1 05-21-2004 09:44 PM


All times are GMT -4. The time now is 04:21 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
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.