The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Changing the title of tag search pages in vB4?
Hi,
I need help with reformatting the title of the tag pages on my site http://svbk.vn/tags.php?tag=dien+dan+svbk I need the title to change from Search Results (kết quả t?m kiếm) - Dien dan sinh vien Bach Khoa to dien dan svbk - Dien dan sinh vien Bach Khoa How do i change this in the templates. I'm running 4.1.3 Thanks in advance |
#2
|
||||
|
||||
template - <span class="comment">search_resultlist
Change this line to what you want: HTML Code:
<title>{vb:rawphrase search_results} - {vb:raw vboptions.bbtitle}</title> HTML Code:
<title><vb:if condition="THIS_SCRIPT == 'tags'">dien dan svbk<vb:else />{vb:rawphrase search_results}</vb:if> - {vb:raw vboptions.bbtitle}</title> |
#3
|
|||
|
|||
Thank for you support but I need the title to change title of tag search page from:
Search Results (kết quả t?m kiếm) - Dien dan sinh vien Bach Khoa to <tag's name I search> - Dien dan sinh vien Bach Khoa Example: when I search abc tag, title of tag search page will be: abc - Dien dan sinh vien Bach Khoa when I search def tag, title of tag search page will be: def - Dien dan sinh vien Bach Khoa It's look like this page: http://www.vbseo.com/tags/vbulletin/ |
#4
|
|||
|
|||
Who can help me?
|
#5
|
||||
|
||||
Just write a plugin like:
hook location - search_complete PHP Code:
Probably should clean it first. So... PHP Code:
|
#6
|
|||
|
|||
Solved. I've done it!
Thank you so much :x |
#7
|
||||
|
||||
You may need to put a condition around that to only do it on the tags.php page (use THIS_SCRIPT) since that hook gets called on the regular search page also.
|
Благодарность от: | ||
svBK.vn |
#8
|
|||
|
|||
OK, Thank you very much again :X
|
#9
|
|||
|
|||
Sorry, I have a problem with this plugin: When I try to view http://svbk.vn/search.php (and some profiles page), it gives me a 500 error saying:
When I disable this plugin, everything works normally so I think this plugin cause the error. Who can help me? Thanks in advance |
#10
|
||||
|
||||
Did you put a condition around the plugin so it's only used for tags as I suggested in post 7?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|