Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2010, 07:22 PM
calumn calumn is offline
 
Join Date: Nov 2007
Location: Scotland
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Editting Template Problem

Hello

I am trying to edit the footer template on a forum in order to move the vbulletin copyright (not getting rid of it, just moving it).

However, I do the changes in the footer template and stuff, which is all fine. Then I click save and it says:

Quote:
Unclosed Curly Brace Expression
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I have checked the template and there is the same number of open brackets and close brackets - so if I ignore this error I would expect it to work.

But, when I click to ignore and it is done it gives an error saying that the template is being editted by someone else so my changes havent been saved. It then shows me the original template again so my changes have been reversed.

There is definitely no one else editting the template.

I was wondering, is this some sort of protection to stop people removing the footer? Or is it a bug? Anyone know what to do?

Calum
Reply With Quote
  #2  
Old 06-14-2010, 08:13 PM
Rafa-el's Avatar
Rafa-el Rafa-el is offline
 
Join Date: Feb 2010
Location: Nicaragua
Posts: 170
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, that's because as the message said you're moving more of the template brackets allowed so double check for the missing tags and you will be ready.
Reply With Quote
  #3  
Old 06-14-2010, 09:45 PM
calumn calumn is offline
 
Join Date: Nov 2007
Location: Scotland
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rafa-el View Post
No, that's because as the message said you're moving more of the template brackets allowed so double check for the missing tags and you will be ready.
I am definitely not moving it so that it creates missing tags (at least I think not).

This is the new footer:

Code:
{vb:raw ad_location.ad_footer_start}
{vb:raw ad_location.global_above_footer}

{vb:raw ad_location.ad_footer_end} 

<div align="center" style="width: 100%;">
<div id="footer_time" class="shade footer_time" style="width: 250px; color: #000000;">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}<br />
Copyright &copy; 2009-2010 <a 
href="http://www.xxxxxxxx.com/">xxxxx</a>.<br />
Powered by vBulletin? Version 4.0.3
Copyright &copy; 2010 vBulletin Solutions, Inc.<br />All rights reserved.</div>

</div>
<div id="footer" class="floatcontainer footer">
	<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select" class="footer_select">

			
		<vb:if condition="$show['quickchooser']">
			<select name="styleid" onchange="switch_id(this, 'style')">
				<optgroup label="{vb:rawphrase quick_style_chooser}">
					{vb:raw quickchooserbits}
				</optgroup>
			</select>	
		</vb:if>
		
		<vb:if condition="$show['languagechooser']">
			<select name="langid" onchange="switch_id(this, 'lang')">
				<optgroup label="{vb:rawphrase quick_language_chooser}">
					{vb:raw languagechooserbits}
				</optgroup>
			</select>
		</vb:if>
	</form>
	<ul id="footer_links" class="footer_links">
		<vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
		<vb:if condition="$vboptions['hometitle']"><li><a href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li></vb:if>
		<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
		<vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
		<vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
		{vb:raw template_hook.footer_links}
		<vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
		<vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
		<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
	</ul>
</div>
</td></tr></table> <!-- closing div for body_wrapper -->

<div class="footer_area">
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td valign="top" width="250"></td>
<td bgcolor="#262626" width="1"></td>
<td width="15"></td>
<td width="353" valign="top"><br />
<p>
<b>Want to know about new blog posts?</b>  Enter your
 e-mail address by <a target="new" 
href="http://feedburner.google.com/fb/a/mailverify?uri=XXXXX" 
rel="nofollow">clicking here</a> to have posts sent to your inbox! 
</p>
</td>
<td bgcolor="#262626" width="1"></td>
<td width="15"></td>
<td width="250" valign="top"><br />

{vb:raw cronimage}
</td>
</tr></table>
</div>
</td>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7434387-1");
pageTracker._trackPageview();
} catch(err) {}</script>

</tr></table>
I want to move the copyright so it is under the time, so I changed it to:

Code:
{vb:raw ad_location.ad_footer_start}
{vb:raw ad_location.global_above_footer}

{vb:raw ad_location.ad_footer_end} 

<div align="center" style="width: 100%;">
<div id="footer_time" class="shade footer_time" style="width: 250px; color: #000000;">{vb:rawphrase all_times_are_gmt_x_time_now_is_y}</div>
</div>
<div id="footer" class="floatcontainer footer">
	<form action="{vb:raw vboptions.forumhome}.php" method="get" id="footer_select" class="footer_select">

			
		<vb:if condition="$show['quickchooser']">
			<select name="styleid" onchange="switch_id(this, 'style')">
				<optgroup label="{vb:rawphrase quick_style_chooser}">
					{vb:raw quickchooserbits}
				</optgroup>
			</select>	
		</vb:if>
		
		<vb:if condition="$show['languagechooser']">
			<select name="langid" onchange="switch_id(this, 'lang')">
				<optgroup label="{vb:rawphrase quick_language_chooser}">
					{vb:raw languagechooserbits}
				</optgroup>
			</select>
		</vb:if>
	</form>
	<ul id="footer_links" class="footer_links">
		<vb:if condition="$show['contactus']"><li><a href="{vb:raw vboptions.contactuslink}" rel="nofollow" accesskey="9">{vb:rawphrase contact_us}</a></li></vb:if>
		<vb:if condition="$vboptions['hometitle']"><li><a href="{vb:raw vboptions.homeurl}">{vb:raw vboptions.hometitle}</a></li></vb:if>
		<vb:if condition="$show['admincplink']"><li><a href="{vb:raw admincpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase admin}</a></li></vb:if>
		<vb:if condition="$show['modcplink']"><li><a href="{vb:raw modcpdir}/index.php{vb:raw session.sessionurl_q}">{vb:rawphrase mod}</a></li></vb:if>
		<vb:if condition="$vboptions['archiveenabled']"><li><a href="archive/index.php">{vb:rawphrase archive}</a></li></vb:if>
		{vb:raw template_hook.footer_links}
		<vb:if condition="$vboptions['privacyurl']"><li><a href="{vb:raw vboptions.privacyurl}">{vb:rawphrase privacy_statement}</a></li></vb:if>
		<vb:if condition="$vboptions['tosurl']"><li><a href="{vb:raw vboptions.tosurl}">{vb:rawphrase terms_of_service}</a></li></vb:if>
		<li><a href="{vb:raw relpath}#top" onclick="document.location.hash='top'; return false;">{vb:rawphrase top}</a></li>
	</ul>
</div>
</td></tr></table> <!-- closing div for body_wrapper -->

<div class="footer_area">
<table align="center" width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td valign="top" width="250"></td>
<td bgcolor="#262626" width="1"></td>
<td width="15"></td>
<td width="353" valign="top"><br />
<p>
<b>Want to know about new blog posts?</b>  Enter your
 e-mail address by <a target="new" 
href="http://feedburner.google.com/fb/a/mailverify?uri=XXXXX" 
rel="nofollow">clicking here</a> to have posts sent to your inbox! 
</p>
</td>
<td bgcolor="#262626" width="1"></td>
<td width="15"></td>
<td width="250" valign="top"><br />
<p>
Copyright &copy; 2009-2010 <a 
href="http://www.xxxxxxxx.com/">xxxxx</a>.<br />
Powered by vBulletin? Version 4.0.3
Copyright &copy; 2010 vBulletin Solutions, Inc.<br />All rights reserved.<br />
</p>
{vb:raw cronimage}
</td>
</tr></table>
</div>
</td>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7434387-1");
pageTracker._trackPageview();
} catch(err) {}</script>

</tr></table>
Red is the moved code
Reply With Quote
  #4  
Old 06-15-2010, 02:16 AM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is the offending code that is giving you the error

Code:
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7434387-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Reply With Quote
  #5  
Old 06-15-2010, 08:55 AM
calumn calumn is offline
 
Join Date: Nov 2007
Location: Scotland
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DragonBlade View Post
Here is the offending code that is giving you the error

Code:
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7434387-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Thanks, but what is wrong with it?

I assume it is part of Google Analytics because I think the rest is, but I can't be certain.
Reply With Quote
  #6  
Old 06-15-2010, 10:13 AM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A fix would be to use this instead:
Code:
<vb:literal>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-7434387-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</vb:literal>
Reply With Quote
  #7  
Old 06-15-2010, 01:43 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, the problem is right here:
HTML Code:
Copyright &copy; 2009-2010 <a 
href="http://www.xxxxxxxx.com/">xxxxx</a>.<br />
You can't put a line break right after you start your <a> tag.
Reply With Quote
  #8  
Old 06-16-2010, 12:49 AM
your24hourstore your24hourstore is offline
 
Join Date: Feb 2010
Posts: 1,226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol now thats funny stuff. lynne is so kool
Reply With Quote
  #9  
Old 06-16-2010, 03:13 AM
DragonBlade's Avatar
DragonBlade DragonBlade is offline
 
Join Date: May 2006
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Actually, the problem is right here:
HTML Code:
Copyright &copy; 2009-2010 <a 
href="http://www.xxxxxxxx.com/">xxxxx</a>.<br />
You can't put a line break right after you start your <a> tag.
It still functions correctly even if you put a line break right there. (Yes, I already tried it out myself :P)
Reply With Quote
  #10  
Old 06-16-2010, 07:28 AM
ChopSuey ChopSuey is offline
 
Join Date: Jun 2009
Location: Alaska
Posts: 2,140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Revert your template, then try replacing it again.
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:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04233 seconds
  • Memory Usage 2,275KB
  • Queries Executed 11 (?)
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_code
  • (2)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete