View Single Post
  #840  
Old 02-14-2005, 04:29 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zain Jaffer
Hi Andrew,

Perhaps I was too vague and should make myself more clear:

Sorry, but the 2 solutions failed to solve the problem:

Bascically, I want the avatar to remain where it is on the front page but its image NOT be displayed how it is in the link above but to remain where it is.

Here is the main page: http://www.juicyduff.com/forum/local_links.php

You can see that the "wallpapers" images is moved, basically I only want the thumbnails to be on the left handside (category) and no where else.

Thanks, your help is appreciated...
Then you will have to edit a couple of the templates, links_main and links_catbit. links_main is the one that gives you the category title near the top of the page and links_catbit gives you the listing of categories within a page. There are three bits of information that you play with: the category name, its description and its extended description.

As you observe, if you put an image tag (or any other tag) into the category name, then the tag also shows up in the navigation bar as text. (I'll see if I can check for that condition and remove it, but I need to be careful that I don't kill anything else in the process.)

What you could do (easier if you are the only person creating categories on your board) is use the description or its extended description purely to hold the bbcode image tage, and modify the template accordingly.

For example. you could use the description to hold only the image tag and put the accompanying text into the extended description. So, you might edit these lines in the links_main template:

Code:
<tr align="center">
	<td class="tcat" align="center"><strong>$viewcatname</strong>
	<if condition="$catclosed != 0"><span class="smallfont">[closed]</span></if>
	</td>
</tr><tr>
	<td class="alt1"><span class="smallfont">$viewcattext</span></td>
</tr></tbody>
replacing $viewcatname by $viewcatdesc $viewcatname

You would also have to make a similar change in the links_catbit template, where the three variables are $catname, $catdesc amd $cattext.

Code:
<tr valign="top">
<td class="alt$catstyle">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
<a href="local_links.php?action=links&amp;catid=$catid">$catname</a>
<if condition="$catnew">
</b>
</if>
</span>
</td>
<td class="alt$catstyle">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td width="75%">
<span class="smallfont">
<if condition="$catnew">
<b>
</if>
$catdesc
<if condition="$catnew">
</b> (new entry $catdate)
</if>
<if condition="$links_permissions[can_edit_category]">
<a href="local_links.php?action=editcat&amp;catid=$catid">[edit]</a>
</if>
<if condition="$subcatnames"><br /><strong>Sub-categories:</strong> $subcatnames</if>
</span>
</td>
<td class="alt$catstyle" width="25%" align="right">
<span class="smallfont">
<if condition="$links_defaults[count_depth]==0">
[$catsub categ/$catentry entries]
<else />
[$catchildentry entries]
</if>
</span>
</td>
</tr>
</table>
</td>
</tr>
Good luck
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01746 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete