I know that i can use the variable <%$tag%> at the browsetag.html, but i want to use at rows.html too.
Do u have any tip to pass this variable to rows.html?
Best Regards
I know that i can use the variable <%$tag%> at the browsetag.html, but i want to use at rows.html too.
Do u have any tip to pass this variable to rows.html?
Best Regards
Hi, you need to use this variable
Hope this will work.HTML Code:<%$keywords|tag_format%>
Thanks for your reply pungky!
But <%$keywords|tag_format%> not work at rows.html. It works at browsetag.html but not at rows.html.
I want to use only the tag word at my alt tag of the images links (for seo).
At my rows.html i have a site print screen of each listing. In that image i want to use the same tag that was used in browsetag.html. The variable use at browsetag.html is <%$tag%> but this variable not working ( is empty!) at rows.html!
How to pass this variable from browsetag.html to rows.html?
Thanks in advance
Hi,
Could you send or copy the code of your rows.html here, we need to check it.
The rows.html code is:
I want to use at this file the variable <%$tag%>. But <%$tag%> it always empty! It´s work well at browsetag.html .... but not pass to rows.html.Code:<%$hook_html_rows_begin%> <%if $sponsored%> <%include file="sponsored_rows.html"%> <%elseif $premium%> <%include file="premium_rows.html"%> <%else%> <div class="link_rows"> <span><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span> <%if $enable_bidding%> [<a href="<%$site_url%>/upgrade.php?pflag=retrieve&id=<%$link_id%>"><%t%>bid<%/t%></a> $<%$bid%>] <%/if%> <br /> <%$description%> <br /> <a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a> - <a href="<%$site_url%>/<%$detail_page_url%>"><%t%>Detail<%/t%></a> <br /><span class="googlepr">Google PR <img src="<%$site_url%>/googlepr.php?link_id=<%$link_id%>"></span> </div> <%/if%> <%$hook_html_rows_end%>
Waiting for your reply,
You can't use <%$tag%> in rows.html.
From my understanding, you want to list the tags / keywords in rows.html which will be displayed in many pages such as category pages and search result.
If so, you should use the following code to show the tag/keyword's of the link.
In rows.html, it could be something like:Code:<%$keywords|tag_format%>
Code:<%$hook_html_rows_begin%> <%if $sponsored%> <%include file="sponsored_rows.html"%> <%elseif $premium%> <%include file="premium_rows.html"%> <%else%> <div class="link_rows"> <span><a href="<%$url%>" name="link_<%$link_id%>"><%$title%></a></span> <%if $enable_bidding%> [<a href="<%$site_url%>/upgrade.php?pflag=retrieve&id=<%$link_id%>"><%t%>bid<%/t%></a> $<%$bid%>] <%/if%> <br /> <%$description%> <br /> <%$keywords|tag_format%> <br /> <a href="<%$url%>" name="link_<%$link_id%>"><%$url%></a> - <a href="<%$site_url%>/<%$detail_page_url%>"><%t%>Detail<%/t%></a> <br /><span class="googlepr">Google PR <img src="<%$site_url%>/googlepr.php?link_id=<%$link_id%>"></span> </div> <%/if%> <%$hook_html_rows_end%>
But is exactly that i want!You can't use <%$tag%> in rows.html.
There is no way to use(send) this variable at rows.html like we use at browsetag.html ?
If u have an idea please let me know.
At browsetag.php we have
Can we use this or implement a function or a global variable that pass the $tag to rows.html template file ?Code:$r = $dbConn->Execute("select distinct(tag) as tag from idx_tags where tag_path = '$tag'"); $tag = $r->Fields('tag');
The tag is populated from link's keyword. If you want to show the tag/keyword in rows.html, please use the code as I posted above.
I may not understand your question here. Please show me a screenshot the result of <%$tag%> at the browsetag.html in the browser. I may can give better direction.Code:<%$keywords|tag_format%>
I made a graphic to explain what i want to do:
What u think about it know? Is possible?
I see. It would be not possible without hacking the code.
I have other suggestion. Why not use this code in rows.html:
In browse by tag page, it will list the links with matched tag in the keyword. In this case, all links that contain word "flower". So in alt attribute still contain word 'flower'.Code:<img src="<%image%>" alt="<%$keywords%>" />
I think it is better rather than having 10 images in rows have the same tag "flower".
My alt attribute now is like that:
In this case i have a lot of keywords inside of alt atribute that can be considered to be an unethical search engine optimization (SEO) technique.Code:alt="Online Store <%$title%>,<%$keywords%>"
So i think for seo purpose it will better to have
I undertansd a litle bit of php development. Can u give me a single tip for start to implement that.Code:alt="<%$tag%> Online Store, <%$title%>"
Can i set a global variable at browsetag.php ?
I find this piece of code that can help me
Best regards,Code:$r = $dbConn->Execute("select distinct(tag) as tag from idx_tags where tag_path = '$tag'"); $tag = $r->Fields('tag');