By: Mankiy
Date: 2003-07-01
Time: 03:04
|
isnt workingI want it to give the sub_ID in the link like this:
<a href="show_topics.php?f={sub.sub_ID;block=tr}"> or like this <a href="show_topics.php?f={sub.sub_ID}"> but both times i tried, it left that in the link and put like a %20 sign before it, is there a way i can do that? |
||
By: Mankiy
Date: 2003-07-01
Time: 03:05
|
Re: isnt workingits showing this link:
http://localhost/forum1/show_topics.php?f=%20{sub.sub_ID;block=tr} |
||
By: Pirjo Posio
Date: 2003-07-01
Time: 03:42
|
Re: isnt workingI'll try to help you, since others seem to be sleeping:
In your previous mail you had a line (if you have not changed it yet):
The "" after 'href=' gives this %20 in your link. It is a blank. I think the line should be like this (but I'm not sure):
|
||
By: Mankiy
Date: 2003-07-01
Time: 04:59
|
Re: isnt workingk, i try, ty
|
||
By: Skrol29
Date: 2003-07-01
Time: 10:54
|
Re: isnt workingThanks Pirjo :)
That was probably Internet Exlporer who replaced the space with %20. |
||
By: Mankiy
Date: 2003-07-01
Time: 19:13
|
Re: isnt workingit is still showing it without replacing ther sub.sub_ID with the sub_ID of it......
http://localhost/forum1/show_topics.php?f={sub.sub_ID;block=tr} |
||
By: Pirjo Posio
Date: 2003-07-01
Time: 21:05
|
Re: isnt workingHi Mankiy,
Have you really changed in tbs the "start and end codes" to { and } instead of the standard [ and ] ? This might be one reason. - Pirjo |
||
By: Mankiy
Date: 2003-07-01
Time: 21:12
|
Re: isnt workingyeh, i changed them to that since thats what im usualyl used to 0_o
|
||
By: Pirjo Posio
Date: 2003-07-01
Time: 21:28
|
Re: isnt workingWhich of the two methods did you choose, that Skrol29 told about in his reply to "The first Template Engine..."?
Too little info for anyone to help, maybe you should (again) send your code. I'm not sure I have time or knowledge enough to help you. - Pirjo |
||
By: Skrol29
Date: 2003-07-01
Time: 21:44
|
Re: isnt workingTry the debug mode to see if TBS recognize the locators :
$TBS->DebugLocator('sub') ; You have to put that before MergeBlock() of course. |
||
By: Mankiy
Date: 2003-07-01
Time: 22:16
|
Re: isnt workingI dont get the debug mode, but here is what it said about sub_ID
Locator = {sub.sub_ID;block=tr} Name = sub, subname = sub_id Begin = 932, end = 952 Parameters[block] = tr and i havent had time to enetr in the methods yet, but i think im going to go witht he clone method... |
||
By: Skrol29
Date: 2003-07-01
Time: 23:59
|
Re: isnt workingDo you have a field named sub_Id in your query or table?
If not, the merge-field will be ignored. Try also to lowcase your TR into tr. TBS is supposed to be case insensitive, but just to check. |
||
By: Mankiy
Date: 2003-07-02
Time: 01:33
|
Re: isnt workingi will check those things, ty
|