PDA

View Full Version : Browsecategory edit help, please


LenB
04-28-2008, 09:18 PM
how do I remove completely the Username, Category Tools and Date from browsecategoy?

And also the Username, Date and Category from Showentry, please?

Brian
04-29-2008, 01:07 PM
All of that info is located in your 'ADV_DYNA_BROWSECATEGORY' and 'ADV_DYNA_SHOWENTRY' templates and can be removed from there.

Our Sponsors
 

LenB
04-30-2008, 02:07 PM
Brian, thanks. I just checked and "user" appears 30 times in just the browsecategory template...not to mention the other template and the other items I want to remove.:confused:

Can you please tell me what code to remove in each of the templates. If you help me I will name my next grandchild after you. :cool:

Brian
05-01-2008, 03:16 PM
ADV_DYNA_BROWSECATEGORY


<if condition="$show['category_tools']">
<td class="vbmenu_control" id="cattools"><a href="<if condition="$vba_options['dyna_spiderurls']">$categorylink</if>#goto_cattools" rel="nofollow"><phrase 1="$vbphrase[category]">$vbphrase[x_tools]</phrase></a> <script type="text/javascript"> vbmenu_register("cattools"); </script></td>
</if>





<if condition="$show['category_tools'] AND !$show['subcats']">
<td class="vbmenu_control" id="cattools"><a href="<if condition="$vba_options['dyna_spiderurls']">$categorylink</if>#goto_cattools" rel="nofollow"><phrase 1="$vbphrase[category]">$vbphrase[x_tools]</phrase></a> <script type="text/javascript"> vbmenu_register("cattools"); </script></td>
</if>




<if condition="($vba_options['dyna_allowsubscribe'] AND $bbuserinfo['userid']) OR $vba_options['dyna_exter_rss'] OR $catinfo['parent']">
<div class="vbmenu_popup" id="cattools_menu" style="display:none">
<table border="0" cellpadding="4" cellspacing="1">
<tr>
<td class="thead"><phrase 1="$vbphrase[category]">$vbphrase[x_tools]</phrase></td>
</tr>
<if condition="$vba_options['dyna_allowsubscribe'] AND $bbuserinfo['userid']">
<tr>
<td class="vbmenu_option">
<if condition="$entryuserid">
<if condition="$show['unsubscribe_cat']">
<a onclick="vba_add_subscr_cat($catinfo[catid], $entryuserid)" href="misc.php?$session[sessionurl]do=unsubscribe&amp;type=cat&amp;catid=$catinfo[catid]&amp;entryuserid=$entryuserid" rel="nofollow"><span id="subscr_cat"><phrase 1="$vbphrase[category]">$vbphrase[unsubscribe_from_this_x]</phrase></span></a>
<else />
<a onclick="vba_add_subscr_cat($catinfo[catid], $entryuserid)" href="misc.php?$session[sessionurl]do=subscribe&amp;type=cat&amp;catid=$catinfo[catid]&amp;entryuserid=$entryuserid" rel="nofollow"><span id="subscr_cat"><phrase 1="$entryusername_poss" 2="$vbphrase[entries]" 3="$vbphrase[category]">$vbphrase[subscribe_to_x_y_in_this_z]</phrase></span></a>
</if>
<else />
<if condition="$show['unsubscribe_cat']">
<a onclick="vba_add_subscr_cat($catinfo[catid])" href="misc.php?$session[sessionurl]do=unsubscribe&amp;type=cat&amp;catid=$catinfo[catid]" rel="nofollow"><span id="subscr_cat"><phrase 1="$vbphrase[category]">$vbphrase[unsubscribe_from_this_x]</phrase></span></a>
<else />
<a onclick="vba_add_subscr_cat($catinfo[catid])" href="misc.php?$session[sessionurl]do=subscribe&amp;type=cat&amp;catid=$catinfo[catid]" rel="nofollow"><span id="subscr_cat"><phrase 1="$vbphrase[category]">$vbphrase[subscribe_to_this_x]</phrase></span></a>
</if>
</if>

</td>
</tr>
</if>
<if condition="$vba_options['dyna_exter_rss']">
<tr>
<td class="vbmenu_option"><a href="external.php?catids=$catinfo[catid]" rel="nofollow"><phrase 1="$vbphrase[category]" rel="nofollow">$vbphrase[subscribe_to_this_x_via_rss]</phrase></a></td>
</tr>
</if>
<if condition="$catinfo['parent']">
<tr>
<td class="vbmenu_option"><a href="$parentlink" rel="nofollow"><phrase 1="$vbphrase[category]">$vbphrase[view_parent_x]</phrase></a></td>
</tr>
</if>

<if condition="$show['hidesubcats']">
<tr>
<td class="vbmenu_option"><a href="$allsubcatslink" rel="nofollow"><phrase 1="$vbphrase[entries]" 2="$vbphrase[categories]">$vbphrase[hide_x_from_sub_y]</phrase></a></td>
</tr>
</if>

<if condition="$show['allsubcats']">
<tr>
<td class="vbmenu_option"><a href="$allsubcatslink" rel="nofollow"><phrase 1="$vbphrase[entries]" 2="$vbphrase[categories]">$vbphrase[view_all_x_including_sub_y]</phrase></a></td>
</tr>
</if>

</table>
</div>
</if>




adv_dyna_entrybit_expanded

<td class="thead" width="100%">
<img alt="$entry[statustitle]" border="0" class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$entry[statusicon].gif" /> $entry[dateadded] $entry[timeadded]</td>



<div id="entryuser_$entry[entryid]">
<if condition="$entry['userid']">
<a class="bigusername" href="$vboptions[bburl]/member.php?$session[sessionurl]u=$entry[userid]">$entry[musername]</a>
<if condition="$show['entrybit_online_status']">$entry[onlinestatus]</if>
<script type="text/javascript"> vbmenu_register("entryuser_$entry[entryid]", true); </script>
<else />
$entry[musername]
</if>
</div>






ADV_DYNA_SHOWENTRY

Assuming you want to remove the entire rows with the date, username, replies, and etc, then you need to remove this entire bit of code. If you want to leave everything but the username/date/category, then only remove the parts in red.
<tr>
<td class="thead" colspan="2">
<span style="float:$stylevar[right]">
<if condition="$show['report_button']"><a href="misc.php?$session[sessionurl]do=report&amp;e=$entry[entryid]$adv_sorturl" rel="nofollow"><img alt="$vbphrase[report_to_moderator]" border="0" class="inlineimg" src="$stylevar[imgdir_button]/report.gif" /></a></if>
<if condition="$show['modopts']">
<a href="moderate.php?$session[sessionurl]do=getip&amp;e=$entry[entryid]" rel="nofollow"><img alt="$vbphrase[ip]: $entry[entryipaddress]" border="0" class="inlineimg" src="$stylevar[imgdir_button]/ip.gif" /></a>
</if>
</span>
<img alt="$entry[statustitle]" border="0" class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$entry[statusicon].gif" /> $entry[dateadded] $entry[timeadded]
</td>
</tr>

<tr>
<td class="$altmessageclass" colspan="2" style="padding:0px">
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$entry['avatarpath'] AND $vba_options['dyna_showentry_avatar']">
<td><img align="$stylevar[left]" alt="" border="0" src="$entry[avatarpath]" title="<phrase 1="$entry[username]">$vbphrase[xs_avatar]</phrase>" /></td>
</if>
<td nowrap="nowrap">
<div id="entryuser">
<if condition="$entry['userid']">
<a class="bigusername" href="$vboptions[bburl]/member.php?$session[sessionurl]u=$entry[userid]">$entry[musername]</a>
<if condition="$vba_options['dyna_showentry_onlinestatus']">$entry[onlinestatus]</if>
<script type="text/javascript"> vbmenu_register("entryuser", true); </script>
<else />
$entry[musername]
</if>
</div>
<if condition="$entry['usertitle'] AND $vba_options['dyna_showentry_usertitle']"><div class="smallfont">$entry[usertitle]</div></if>
<if condition="$entry['rank'] AND $vba_options['dyna_showentry_rank']"><div class="smallfont">$entry[rank]</div></if>
</td>
<td width="100%">&nbsp;</td>
<td nowrap="nowrap" class="smallfont">
<if condition="$entry['private']">
<div><strong><phrase 1="$vbphrase[entry]">$vbphrase[private_x]</phrase></strong></div>
</if>

<if condition="!$vba_options['dyna_disablecats']">
<div>$vbphrase[category]: <a href="$entry[caturl]" rel="nofollow">$entry[category]</a></div>
</if>
<if condition="$vba_options['dyna_showentry_views']"><div>$vbphrase[views]: $entry[views]</div></if>
<if condition="$show['replies'] AND ($vba_options['dyna_showentry_replies'] OR $vba_options['dyan_showentry_replypage'])">
<div>
<if condition="$vba_options['dyna_showentry_replypage'] AND $entry[entry_posts]">
<a href="$replieslink">$vbphrase[replies]: $entry[entry_posts]</a>
<else />
$vbphrase[replies]: $entry[entry_posts]
</if>
</div>
</if>
<if condition="$show['hasimicons'] OR $vba_options['dyna_exter_rss']">
<table width="100%" cellpadding="0" cellspacing="0" style="padding-top: $stylevar[cellpadding]px">
<tr>
<td>$entry[icqicon] $entry[aimicon] $entry[msnicon] $entry[yahooicon] $entry[skypeicon]</td>
<if condition="$vba_options['dyna_exter_rss']">
<td align="$stylevar[right]"><a href="external.php?userids=$entry[userid]"><img src="images/rss.gif" border="0" class="inlineimg" alt="" title="<phrase 1="$entry[username_poss]" 2="$vbphrase[entries]">$vbphrase[subscribe_to_x_y_via_rss]</phrase>" /></a></td>
</if>
</tr>
</table>
</if>
</td>
</tr>
</table>
</td>
</tr>

Our Sponsors
 

LenB
05-01-2008, 03:18 PM
Brian, that was a lot of work for you, thanks. I'll work on it tonight.

LenB
05-01-2008, 06:42 PM
Brian, you da man!

It worked. That's pretty scary to push "delete" on code when you have no idea what it all means and if you selected it correctly.

THANKS

Now, how do I remove the entire row and space that includes the little selection box on the browsecategory template? I can't remember but I think that selection box is on the row that used to have the date on it. It's just above the Views/Replies row. You can see it below.

http://www.longrangehunting.com/content/outdoor-news-2/

I know, now we are going for the grandchild's middle name naming rights.

Brian
05-02-2008, 01:10 PM
Search your 'adv_dyna_entrybit_expanded' template for 'views' first and that will take you to near the top of this bit of code, all of which should be removed.
<table width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="smallfont" style="white-space:nowrap;">
<if condition="$show['categorylink']">
<div><a href="$entry[caturl]" rel="nofollow">$entry[category]</a></div>
</if>
<if condition="$show['entrybit_views']"><div>$vbphrase[views]: $entry[views]</div></if>
<if condition="$show['replies'] AND $show['entrybit_replies']">
<div>$vbphrase[replies]: $entry[posts]</div>
</if>
</td>
<if condition="$show['categorylink'] AND $show['entrybit_caticon'] AND $entry['caticon']">
<td>&nbsp;</td><td valign="top"><img src="images/caticon/$entry[caticon]" alt="" class="inlineimg" align="$stylevar[right]" /></td>
</if>
</tr>
<if condition="$show['replies'] AND $show['entrybit_last_reply']">
<tr>
<td class="smallfont" style="white-space:nowrap; padding-top:5px" colspan="3">
$vbphrase[last_reply]:
<if condition="$entry['lastpostid']">
<if condition="$entry['lastpostuserid']">
<a href="$vboptions[bburl]/member.php?$session[sessionurl]u=$entry[lastpostuserid]">$entry[lastpostusername]</a>
<else />
$vbphrase[guest]
</if>
<br />
$entry[lastpostdate] <span class="time">$entry[lastposttime]</span> <a href="$entry[lastposturl]"><img alt="" border="0" src="$stylevar[imgdir_button]/lastpost.gif" title="$vbphrase[go_to_last_post]" /></a>
<else />
$vbphrase[never]
</if>
</td>
</tr>
</if>
</table>

I know, now we are going for the grandchild's middle name naming rights.

Yup. Just trying to figure out what s/he's going to be called now. :p

LenB
05-06-2008, 09:10 AM
I tried that pretty carefully but it didn't work.

Brian
05-06-2008, 03:01 PM
What exactly didn't work or what exactly is the problem?

LenB
05-06-2008, 03:03 PM
There was no change in the look after trying to remove the entire row and space that includes the little selection box on the browsecategory template.

That stuff is still there.

Brian
05-06-2008, 04:10 PM
Sorry, but I'm not sure I'm completely following you...

"the entire row and space that includes the little selection box on"

Are you referring to the part that shows the username, number of views/replies, and etc, or something different?

LenB
05-07-2008, 04:42 PM
http://www.longrangehunting.com/content/outdoor-news-2/

On the page above, it is both rows, one dark brown, one tan that are just above the item's title that I would like to completely remove. As you look at them above, one is totaly blank and one has the little tiny white box.

Brian
05-07-2008, 04:55 PM
Looks like you would also need to remove this code from your 'adv_dyna_entrybit_expanded' template:
<tr>
<td class="alt2" colspan="4" style="padding:0px">
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['entrybit_avatar'] AND $entry['avatarpath']">
<td><img align="$stylevar[left]" alt="" border="0" src="$entry[avatarpath]" title="<phrase 1="$entry[username]">$vbphrase[xs_avatar]</phrase>" /></td>
</if>
<td nowrap="nowrap">
<div id="entryuser_$entry[entryid]">
<if condition="$entry['userid']">
<a class="bigusername" href="$vboptions[bburl]/member.php?$session[sessionurl]u=$entry[userid]">$entry[musername]</a>
<if condition="$show['entrybit_online_status']">$entry[onlinestatus]</if>
<script type="text/javascript"> vbmenu_register("entryuser_$entry[entryid]", true); </script>
<else />
$entry[musername]
</if>
</div>
<if condition="$entry['usertitle'] AND $show['entrybit_user_title']"><div class="smallfont">$entry[usertitle]</div></if>
<if condition="$entry['rank'] AND $show['entrybit_user_rank']"><div class="smallfont">$entry[rank]</div></if>
</td>
<td width="100%">&nbsp;</td>
</tr>

LenB
05-12-2008, 09:25 AM
Oops, that broke it and I don'ty know where to put back that code. Can you help please. This is what it looks like now...all blank.

http://www.longrangehunting.com/content/outdoor-news-2/