Grey Matter Forums
« Editing Author Smartlink Target Template... »

Welcome Guest. Please Login or Register.
May 24, 2013, 8:10pm



Greymatter: Free Personal Blogging Software

About Greymatter (including System Requirements)

Greymatter on FreshMeat

Download current version from:

News: Greymatter 1.8.2 is released! Read the announcement.

Got a minute? We want to know what's your preferred site navigation?

Please read the security announcement regarding author passwords.

Next Greymatter release will be 1.8.3


Grey Matter Forums :: Development :: Bug Reports :: Editing Author Smartlink Target Template...
   [Search This Thread] [Share Topic] [Print]
 AuthorTopic: Editing Author Smartlink Target Template... (Read 2,387 times)
stryker
New Member
*
member is offline





Joined: Jun 2007
Gender: Male
Posts: 34
Karma: 2
 Editing Author Smartlink Target Template...
« Thread Started on Oct 4, 2007, 9:57am »

Hi,

I'm redesigning a greymatter site so went in and put a comment at the start and end of every template to aid debugging.

The Author Smartlink Target template was blank, and since I didn't intend to change that I went back in to remove the two comments. But rather than clear the contents of that template, every time I rebuild, the comments are back again.

I just overkeyed the comments with target="_blank" but after rebuild it's not replaced the comments with it, but appended the new text to the comments. I've been playing with this a bit more and now I have this result:
Code:
                
<!-- Author Smartlink Target -->

<!-- end Author Smartlink Target -->                target="_blank"    target="_blank"    target="_blank"                        
<!-- Author Smartlink Target -->

<!-- end Author Smartlink Target -->                target="_blank"    target="_blank"    


Other templates are editing and updating fine. Is this template held in a different file that I might have messed up the permissions on? Has anyone seen anything like this before ?

Thanks for any advice in advance...
Link to Post - Back to Top  IP: Logged
Carlos Phelps
Global Moderator
*****
member is offline





Joined: Jan 2007
Gender: Male
Posts: 177
Karma: 30
 Re: Editing Author Smartlink Target Template...
« Reply #1 on Oct 4, 2007, 11:12am »

stryker,

All the templates are in one file.

You might try this, open the template in question and right click in the text area then 'Select All' and delete it.

Now enter the new text you would like in the template then save it and rebuild all pages.

Hope this helps,
Carlos
« Last Edit: Oct 4, 2007, 11:36am by Carlos Phelps »Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: Editing Author Smartlink Target Template...
« Reply #2 on Oct 4, 2007, 5:21pm »

Otherwise, if you are very carefull, you can edit the gm-templates.cgi file directly, simply remove the text and be sure to save as text.

The line should be:
gmlinktargettemplate=...

so, just delete upto the '=' (but be sure to leave it).
Link to Post - Back to Top  IP: Logged
stryker
New Member
*
member is offline





Joined: Jun 2007
Gender: Male
Posts: 34
Karma: 2
 Re: Editing Author Smartlink Target Template...
« Reply #3 on Oct 5, 2007, 7:18am »

Hi guys,

Thanks to you both for your rapid suggestions. It appears if I select all, delete and rebuild I'm just appending nothing to the end of the existing content. ie what happens after a rebuild is I end up with the same old content again.

Editing the cgi directly has done the trick. I had figured that would be my fallback position granted courage and a backup ;D

Strange one. Cheers!
Geoff
Link to Post - Back to Top  IP: Logged
coldstone
Global Moderator
*****
member is offline

[avatar]


[homepage]

Joined: Aug 2006
Posts: 816
Karma: 18
 Re: Editing Author Smartlink Target Template...
« Reply #4 on Oct 7, 2007, 9:11pm »

Kudos Geoff, you found a bug! For some reason, the value of that textfield (Author Smartlink Target Template) was being hidden on the page, as well as having a edit box. Greymatter was squashing it all together when saving. This will be fixed in 1.7.4.
Link to Post - Back to Top  IP: Logged
stryker
New Member
*
member is offline





Joined: Jun 2007
Gender: Male
Posts: 34
Karma: 2
 Re: Editing Author Smartlink Target Template...
« Reply #5 on Oct 11, 2007, 5:06am »

ah...finally one that's not me ;D Now there's a satisfying feeling!
Link to Post - Back to Top  IP: Logged
   [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile