PDA

View Full Version : h1 and h2 at forumdisplay.php


Ghostt
05-28-2010, 10:08 PM
For SEO reasons i want to add h2 tag at every topiclink at the forumdisplay.php .
f.e.
<h2>h1 and h2 at forumdisplay.php</h2>

and h1 tag at the Forumtitle: LIke for example in this forum it would be "Threads in Forum : <h1>vB3 General Discussions</h1>"

where exectly i have to edit that?

Speysider
05-29-2010, 11:31 AM
AdminCP >> Styles + Templates >> Edit Templates (of the style you want to edit) >> Forum Display Templates >> FORUMDISPLAY

Can't remember whereabouts in that template you'd add your code.

Ghostt
05-29-2010, 11:45 AM
yes i know it is forumdiplay but where exectly? ive searched for it but didnt found that title line. :/

Ghostt
05-30-2010, 02:05 PM
no ideA?

Speysider
05-30-2010, 05:38 PM
I've told you where to go. Obviously, you are just ignoring my answer.

Ghostt
05-30-2010, 05:43 PM
I've told you where to go. Obviously, you are just ignoring my answer.

no you ignore my answer. where exectly it is in thge forumdisplay template, because i cant find it there

Speysider
05-30-2010, 08:20 PM
And as I've said, i don't know.

jamesyfx
05-30-2010, 08:35 PM
Hi,

Search for this code in FORUMDISPLAY:
<!-- / controls above thread list -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center" style="border-bottom-width:0px">
<tr>
<td class="tcat" width="100%">$vbphrase[threads_in_forum] :<span class="normal">$foruminfo[title]</span></td>


The part I've highlighted in red is where you should add your <h1> tags. You should remove the span first, then add your headings.

Ghostt
06-01-2010, 03:47 PM
thank you very much now the h1 is working good:)
now is missing the h2 just missing.
I have found it in the threadbit template.
Unfortunately i dont know where to put the h2 tag. because the code extends over many lines (also because of other mods) and when I insert the H2,
the <a href ... $ Thread [thread title] </ a> is made a line break.
where exactly is the right place?


<tr>
<td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
$thread[openclose_editable]
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>

<if condition="$show[threadicons]">
<td class="alt2"><if condition="$thread[thumbnaildisplay] AND !$thread[sticky]">
<div id="menu" style="z-index: 1;">
<a class="p1" href="showthread.php?t=$thread[realthreadid]" ><img src="$thread[thumbnailurl]" title="&nbsp;" alt="Loading..." width="56" style="max-height: 82px;"/><img class="large" src="$thread[thumbnailurl]" title="vergr&ouml;&szlig;ertes Cover" /></a></div>
<else />
<if condition="$show[threadicon]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /></if>
</if></td></if>


<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">

$thread[title_editable]
<div>
<if condition="$show['taglist'] OR $show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
<span style="float:$stylevar[right]">
<if condition="$show['taglist']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/tag.png" alt="$thread[taglist]" /> </if>
<if condition="$show['rexpires']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/expires.gif" alt="<phrase 1="$thread[expiredate]" 2="$thread[expiretime]">$vbphrase[expires_on_x_y]</phrase>" /> </if>
<if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
<if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
<if condition="$show['paperclip']"> <a href="#" onclick="attachments($thread[threadid]); return false"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a> </if>
<if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
</span>
</if>
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
$thread[movedprefix]
$thread[typeprefix]
$thread[moderatedprefix]
$thread[prefix_rich]
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
</div>

<if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>

<div class="smallfont">
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>
</div>

<if condition="$show['unsubscribe']">
<div class="smallfont">
<a href="newreply.php?$session[sessionurl]do=newreply&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
<a href="subscription.php?$session[sessionurl]do=removesubscription&amp;return=ucp&amp;t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
</div>
</if>

</td>

<if condition="$show['threadmoved']">
<td class="alt2" align="center">-</td>
<else />
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</td>
</if>

<if condition="$show['notificationtype']">
<td class="alt1"><div class="smallfont">
<label for="sub$subscribethread[$threadid]">$thread[notification]</label>
</div></td>
<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
<else />
<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&amp;t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
<td class="alt2" align="center">$thread[views]</td>

<if condition="$show['forumlink']">
<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
</if>
</if>

<if condition="$show['inlinemod']">
<td class="<if condition="$show['forumlink']">alt2<else />alt1</if>">
<input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
</td>
</if>
</tr>

--------------- Added 1275487874 at 1275487874 ---------------

oh sry fixed the post to english xD

Ghostt
06-04-2010, 02:03 PM
no idea`?
after this problem i would be finished.
this would help many users who care about seo :)

Ghostt
06-06-2010, 09:23 PM
i need still help here

Ghostt
06-29-2010, 04:27 PM
no one an idea?

ChopSuey
06-29-2010, 11:46 PM
<a href="http://forum.vbulletinsetup.com/f7/how-seo-vbulletin-without-vbseo-15827.html" target="_blank">http://forum.vbulletinsetup.com/f7/h...seo-15827.html</a>

Check it out.

Ghostt
06-30-2010, 12:15 AM
thats not what im looking for.
please read my text carrefully

ChopSuey
06-30-2010, 12:27 AM
Find
<td class="tcat" width="100%">$vbphrase[threads_in_forum]<span class="normal"> : $foruminfo[title]</span></td>\
That's what your lookin for ;)

Ghostt
06-30-2010, 12:40 AM
no its not working.
ones more:
i want that every Topic title link at the forumdisplay template has a <h2> ....
so easy to explain but not release.

look at my post https://vborg.vbsupport.ru/showpost.php?p=2046562&postcount=9
i found the place but not exectly ,where the beginning od h2 is and where the end </h2>

ChopSuey
06-30-2010, 12:54 AM
Oh its in ThreadBit Templates > threadbit

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">]

Ghostt
07-01-2010, 05:44 PM
Oh its in ThreadBit Templates > threadbit

<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">]

yes its below this code.
but i still dont know where to put exectly the h1 tags...

Ghostt
07-04-2010, 01:37 PM
need still help here Oo im confused

Ghostt
07-09-2010, 01:57 PM
no ideas?

Brandon Sheley
07-09-2010, 02:21 PM
Might ask at vbulletin.com or the vbsetup forums that chopsuey linked to ;)
we use vbseo to take care of our header tags

Ghostt
07-12-2010, 01:36 PM
ive almost fixed it with that css: "h1{display:inline}"

but now i see there is still a problem: the part with "<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>"
isnt working so the new thread titles arent bold...

how to fix that css problem?

<h2><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a></h2>

BirdOPrey5
07-12-2010, 02:47 PM
maybe take the {display:inline} out of the css and just put it in each tag?

Ghostt
07-12-2010, 03:59 PM
maybe take the {display:inline} out of the css and just put it in each tag?

i dont think its the reason why the link isnt bold..