Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 12-13-2005, 04:44 PM
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
Location: Halifax, NS, Canada
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would also like to know how to get the cookie file to remember my custom collapses etc.

I can get any thing to collapse just fine.. but when I refresh it goes back to its default state.

Can someone help please.
Reply With Quote
  #12  
Old 12-13-2005, 05:11 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HRM Web Service
I would also like to know how to get the cookie file to remember my custom collapses etc.

I can get any thing to collapse just fine.. but when I refresh it goes back to its default state.

Can someone help please.
Post your table code.
Reply With Quote
  #13  
Old 12-13-2005, 06:04 PM
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
Location: Halifax, NS, Canada
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's the block below. I know that only part of it is relevant but I figured it's better all than not.

The functional portion can be seen here ("Icon Meanings" at the bottom of the screen):
http://eservices.halifax.ca/forum2/index.php

HTML Code:
<div align="center">
<table width="100%"  border="0" class="tborder" cellpadding="5" cellspacing="1" >
<!-- Added the following for collapsible menus -->
<tbody>
	<tr>
		<td class="tcat" align="left" colspan="3">
			<a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('iconLegend')"><img id="collapseimg_iconLegend" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_iconLegend}.gif" alt="" border="0" /></a>
			<a href="#top" onClick="return toggle_collapse('iconLegend')">Icon Meanings</a>
		</td>
	</tr>
</tbody>
<tbody id="collapseobj_iconLegend">
   <tr class="alt1">
      <td align="center" valign="middle"><table width="100%"  border="0" cellpadding="1" cellspacing="0">
         <tr class="alt1">
            <td bgcolor="#FFFFFF" align="center" valign="middle"><table width="100%"  border="0" cellpadding="4" cellspacing="1">
                  <tr class="alt1">
                    <td class="custom_alt2" align="center" valign="middle">

<img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
			<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_new_posts]</td>

			<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
			<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>

			<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
			<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_is_closed_for_posting]

                    </td>
                  </tr>
              </table></td>
         </tr>
      </table></td>
   </tr>
  </tbody>
  </table>
</div>
Thanks for the help

Incase you're wondering....

It works fine other than the fact that it doesn't recall whether or not it was collapsed. i.e. the cookies are not being set correctly.

Being able to customize collapsing menus is very important to the layout I wish to achieve.

G
Reply With Quote
  #14  
Old 12-13-2005, 07:58 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your table is out of balance. Two opens, three closes and the tbody tag not nested properly.

I did this quickly, but it may work. I did not check the collapse code, just the table code.

HTML Code:
<div align="center">
<table width="100%"  border="0" class="tborder" cellpadding="5" cellspacing="1" >
<!-- Added the following for collapsible menus -->
	<tbody>
	<tr>
		<td class="tcat" align="left" colspan="3">
			<a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('iconLegend')"><img id="collapseimg_iconLegend" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_iconLegend}.gif" alt="" border="0" /></a>
			<a href="#top" onClick="return toggle_collapse('iconLegend')">Icon Meanings</a>
		</td>
	</tr>
	</tbody>
	<tbody id="collapseobj_iconLegend">
	<tr class="alt1">
    <td align="center" valign="middle">
		<table width="100%"  border="0" cellpadding="1" cellspacing="0">
         <tr class="alt1">
            <td bgcolor="#FFFFFF" align="center" valign="middle"><table width="100%"  border="0" cellpadding="4" cellspacing="1">
         <tr class="alt1">
                <td class="custom_alt2" align="center" valign="middle">

					<img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" />
				</td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_new_posts]
				</td>

				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" />
				</td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_no_new_posts]
				</td>

				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" />
				</td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_is_closed_for_posting]
                </td>
         </tr>
       </table>
	 </td>
     </tr>
	 </tbody>
</table>
</div>
Reply With Quote
  #15  
Old 12-14-2005, 10:41 AM
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
Location: Halifax, NS, Canada
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey,

Thanks for reviewing the code Noppid.

I have checked the code I posted using DW8 (Dreamweaver 8). I see no problem with the tags. They are all XHTML compliant and there are equal number of open and close tags for everything in the right locations.

The code you posted however has errors in as you described. Specifically the section below:

HTML Code:
		<table width="100%"  border="0" cellpadding="1" cellspacing="0">
         <tr class="alt1">
            <td bgcolor="#FFFFFF" align="center" valign="middle">
			
			<table width="100%"  border="0" cellpadding="4" cellspacing="1">
         		<tr class="alt1">
                <td class="custom_alt2" align="center" valign="middle"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_new_posts]</td>
				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
         		</tr>
		    </table>
	 </td>
     </tr>
	 </tbody>
Any other suggestions? The problem is not the code (well it could be the collapsing code - but it appreas fine). Just wondering why cookie or caching isn't taking place.
Reply With Quote
  #16  
Old 12-14-2005, 10:47 AM
utw-Mephisto utw-Mephisto is offline
 
Join Date: Jan 2005
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is an official tutorial on vb.com

http://www.vbulletin.com/forum/showthread.php?t=127499

Should apply to almost every version ..
Reply With Quote
  #17  
Old 12-14-2005, 01:58 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by HRM Web Service
Hey,

Thanks for reviewing the code Noppid.

I have checked the code I posted using DW8 (Dreamweaver 8). I see no problem with the tags. They are all XHTML compliant and there are equal number of open and close tags for everything in the right locations.

The code you posted however has errors in as you described. Specifically the section below:

HTML Code:
		<table width="100%"  border="0" cellpadding="1" cellspacing="0">
         <tr class="alt1">
            <td bgcolor="#FFFFFF" align="center" valign="middle">
			
			<table width="100%"  border="0" cellpadding="4" cellspacing="1">
         		<tr class="alt1">
                <td class="custom_alt2" align="center" valign="middle"><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_new_posts]</td>
				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
				<td class="custom_alt2" align="center"><img src="$stylevar[imgdir_statusicon]/forum_new_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
				<td class="smallfont" bgcolor="#F6F8FA" align="left">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
         		</tr>
		    </table>
	 </td>
     </tr>
	 </tbody>
Any other suggestions? The problem is not the code (well it could be the collapsing code - but it appreas fine). Just wondering why cookie or caching isn't taking place.

Yep, I missed one. Sorry.

To get your cookies to work, change the second <tbody> to....

HTML Code:
<tbody id="collapseobj_iconLegend" style="$vbcollapse[collapseobj_iconLegend]">
You left out the style.
Reply With Quote
  #18  
Old 12-15-2005, 11:02 AM
HRM Web Service HRM Web Service is offline
 
Join Date: Dec 2005
Location: Halifax, NS, Canada
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow. That easy eh!! lol

I guess sometimes you just miss something so simple you think nothing of it!

Thanks a lot Noppid!

And thanks utw-Mephisto for the link!
Reply With Quote
Reply


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


All times are GMT. The time now is 07:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04166 seconds
  • Memory Usage 2,282KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete