![]() |
|
#1
|
|||
|
|||
|
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) Last edited by Richard; 06-04-2004 at 09:28 AM. |
|
#2
|
||||
|
||||
|
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
|
|||
|
|||
|
How would i add this to other modules? I've tried however the information is not saved after the page has been refreshed
|
|
#4
|
|||
|
|||
|
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
|
|||
|
|||
|
Im trying to add a custom module as well as the weather module, cheers though ill try that out
|
|
#6
|
|||
|
|||
|
WOW
woohoo!! i'm happy someone posted something like this |
|
#7
|
|||
|
|||
|
The files in the .zip file have been updated for VBA CMPS v1.0.0 (Gold)
|
|
#8
|
||||
|
||||
|
Here a .zip file with 12 custom modules pre made by my for ppl that want to have those .php files fast.
|
|
#9
|
|||
|
|||
|
Can somebody please tell me how to make the articles cmps module a collapsable one?
|
|
#10
|
|||
|
|||
|
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 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
|
|||
|
|||
|
Anyone know how to make the above example default to a "collapsed" positon rather than an "expanded" position?
|
|
#12
|
||||
|
||||
|
Quote:
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
|
|||
|
|||
|
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
|
|||
|
|||
|
Quote:
|
|
#15
|
||||
|
||||
|
OK I have the phrase x_stats in the vBCMPS section of my phrase manager... should it be global?
|
|
#16
|
|||
|
|||
|
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
|
||||
|
||||
|
Thanks!! Works beautifully
|
|
#18
|
|||
|
|||
|
Quote:
|
|
#19
|
||||
|
||||
|
Quote:
|
|
#20
|
|||
|
|||
|
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 | |
|
|
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 |