|
Haven't registered yet? Do it here now!
|
|
|
|
Mihx
Joined: 03 Apr 2007 Posts: 23
|
|
|
|
|
|
|
Posted: Sat Sep 05, 2009 9:41 pm Post subject: Post titles and links suddenly messed up |
|
|
|
|
|
|
|
|
|
|
I'm just getting ready to start using BO again, but after making some very minor adjustments to some of my old BO blogs (like changing the post break count), post titles and the links behind them are all messed up.
It seems that BO is "doubling" the a href code in the template, so I end up with something that looks like this in the source code:
Code: |
<a href="<a href='http://test.example.com/posttitle_1596.html' rel='bookmark' title="Test Blog Post" class='bopost_title'>Post Link</a>"><a href='http://test.example.com/posttitle_1596.html' rel='bookmark' title="Test Blog Post" class='bopost_title'>Test Blog Post</a></a>
|
Which on the blog results in post titles that look something like this:
Post Link">Test Blog Post
Which should of course just have been - and used to be - "Test Blog Post".
Similarly the links are obviously royally screwed up.
What's going on here all of a sudden, and how do I fix it? As mentioned I haven't made any changes at all (aside from upgrading BO - I was previously running a two year old version), and there's nothing in the template code that indicates that extra code has magically appeared on its own. |
|
|
|
|
|
|
|
Mihx
Joined: 03 Apr 2007 Posts: 23
|
|
|
|
|
|
|
Posted: Sat Sep 05, 2009 9:47 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I think I figured it out myself.
I had this in my post template:
Code: | <h3><a href="%%LINK%%">%%TITLE%%</a></h3> |
And apparently just using %%TITLE%% provides both link and text and all the extra a href stuff was then what screwed it up.
Has this changed since the old versions of BO or did the software just "auto correct" the error in the past? |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Mon Sep 07, 2009 2:49 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
%%TITLE%% - The post title in ready clickable link to the post own page.
%%LINK%% - The post link in ready clickable link, entitled with "Post Link" text.
%%CLEAN_TITLE%% - The post title itself, without any links - just the text.
%%CLEAN_LINK%% - The URL of the post own page without anything else - just the url.
read those 4 variables description carefully to see whats the difference between all of them _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
Mihx
Joined: 03 Apr 2007 Posts: 23
|
|
|
|
|
|
|
Posted: Mon Sep 07, 2009 7:37 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I can see what I did wrong in the code, it just puzzles me a bit that it didn't cause any problems - for the two years some of the blogs had been auto updating - until I went in and made some minor changes elsewhere and updated a few of them. |
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Tue Sep 08, 2009 9:06 am Post subject: |
|
|
|
|
|
|
|
|
|
|
well, when something is left on autopilot it normally works unless the script breaks
nothing has changed since the old BO versions. I am creating new variables, but never touching the old ones because one could have 1k blogs with the old variable and if i directly change it all his blogs will be broke.. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |