Categories > TinyButStrong general >

isnt working

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Mankiy
Date: 2003-07-01
Time: 03:04

isnt working

I 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 working

By: Pirjo Posio
Date: 2003-07-01
Time: 03:42

Re: isnt working

I'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):

<a href=""> {sub.sub_name;block=tr} </a>

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):
<a href="{sub.sub_name;block=tr}">{sub.sub_name;block=tr}</a>
- Pirjo
By: Mankiy
Date: 2003-07-01
Time: 04:59

Re: isnt working

k, i try, ty
By: Skrol29
Date: 2003-07-01
Time: 10:54

Re: isnt working

Thanks Pirjo :)

That was probably Internet Exlporer who replaced the space with %20.
By: Mankiy
Date: 2003-07-01
Time: 19:13

Re: isnt working

it 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 working

Hi 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 working

yeh, 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 working

Which 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 working

Try 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 working

I 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 working

Do 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 working

i will check those things, ty