vBulletin Search Engine Optimization
This is a discussion on How to write my own showthread / forumdisplay links with vbseo URL rewriting enabled? within the General Discussion forums, part of the vBSEO SEO Plugin category; Currently I have my own links in templates like: <a href="showthread.php?t=$variable"> I want to automaticaly look them as <a href="showthread.php/1234-topicname">. ...
| |||||||
Enhancing 80 million pages. | Register | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
|
Currently I have my own links in templates like: <a href="showthread.php?t=$variable"> I want to automaticaly look them as <a href="showthread.php/1234-topicname">. How can I do that, what conditional variables are there? |
|
#3
| |||
| |||
|
I have changed my styles which involves adding additional links. Currently I have my own links in templates like: <a href="showthread.php?t=$variable"> I want to automaticaly look them as <a href="showthread.php/1234-topicname">. How can I do that, what conditional variables are there? |
|
#4
| ||||
| ||||
|
Can you give a live example of what you are trying to achieve ? What you said earlier, ie, converting URLs from showthread.php?t=$variable to showthread.php/1234-topicname vBSEO already does that automatically. You don't need to edit any templates to reflect the changes. |
|
#5
| |||
| |||
|
This is what I wrote Code: <!-- show latest active threads -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%"
align="center">
<tbody>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_external')"><img
id="collapseimg_forumhome_external"
src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_forumhome_external].gif" alt="" border="0" /></a>
<a href="forumdisplay.php?f=$foruminfo[forumid]">Topics in $foruminfo[title]</a>
</td>
</tr>
</tbody>
<tbody id="collapseobj_forumhome_external" style="$vbcollapse[collapseobj_forumhome_external]">
<tr>
<td class="alt1" width="100%">
<div class="smallfont">
<script type="text/javascript" src="external.php?forumids=$foruminfo[childlist]&type=js"></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/firstnew.gif\" alt=\"\" border=\"0\" /></a> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br />");
}
//-->
</script></div>
</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />
|
|
#6
| |||
| |||
|
are there any solutions?
|
|
#7
| ||||
| ||||
|
You want your URL rewrites to look like this? Code: showthread.php/1234-topicname
__________________ Joe Ward / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
|
#8
| |||
| |||
|
I just want them to be shown like in my forum (for example "http://www.vbseo.com/how-write-my-own-showthread-forumdisplay-links-vbseo-url-rewriting-enabled-19969/"). How can I do that?
|
|
#9
| ||||
| ||||
|
Hello, as I see, you have those links created in javascript: HTML Code: for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"&goto=newpost\"><img class=\"inlineimg\" src=\"$stylevar[imgdir_button]/firstnew.gif\" alt=\"\" border=\"0\" /></a> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> <br />");
}
__________________ Oleg Ignatiuk / Crawlability Inc. vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations vBSEO Google Sitemap Generator - Version 2.2 Released Mandatory Upgrade for vBSEO 3.2.0 GOLD 6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You. |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My Links & Download Manager Custom Re-write rules | SemperFideles | Custom Rewrite Rules | 1 | 03-16-2008 06:21 PM |
| Enabled Archive re-write | huntz | Troubleshooting | 6 | 01-10-2007 08:30 PM |
| No refresh/stable content of forumdisplay and showthread | Tomek | Troubleshooting | 1 | 07-02-2006 08:52 AM |