View Single Post
  #1723  
Old 04-26-2006, 02:23 PM
|oR|Greg |oR|Greg is offline
 
Join Date: May 2003
Location: AMACNY.COM
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All problems fixed, well.. all my problems anyway...

Ok, made some cleanup changes, and code changes.

If you want it to look like mine, do the following:

Open ../includes/local_links_include.php

Goto Lines 2304-2306 you'll see this:

Code:
		$linkimgmag = '<a href="local_resize.php?pic='.$linkimg.'&amp;size=600" target="_blank" title="'.$vbphrase['ll_enlarge_thumb'].'">'.
			iif(isset($icon_cache['magnify']),'<img border="0" src="'.$icon_cache['magnify'].'" alt="'.$vbphrase['ll_enlarge_thumb'].'" />','[+]').
			'</a>';
Replace it with this:

Code:
		$linkimgmag = '<a href="local_resize.php?pic='.$linkimg.'&amp;size=600" target="_blank" title="'.$vbphrase['ll_enlarge_thumb'].'">'.
			iif(isset($icon_cache['magnify']),'Enlarge Thumbnail <img border="0" src="'.$icon_cache['magnify'].'" alt="'.$vbphrase['ll_enlarge_thumb'].'" />','[+]').
			'</a>';
Goto Lines 2378-2400 you'll see this:

Code:
		$linkfavbit = "";
		if ($links_permissions["can_mark_link"]) {
			$favicon = iif(isset($icon_cache['myfav']), 
					'<img class="inlineimg" src="'.mk_file_name($links_defaults[file_icons_dir],'myfav.gif').'" alt="" border="0" />',
					'['.iif($linkfav,$vbphrase['ll_ab_favminus'],$vbphrase['ll_ab_favplus']).']');
			$linkfavbit = '<a href="'.$LINKS_SCRIPT.'.php?action=dofavlink&amp;id='.$linkid.'&amp;set='.
					iif($linkfav,"-1","1").'&amp;catid='.$linkcatid.'&amp;page='.$pagenumber.
					'" title="'.iif($linkfav,$vbphrase['ll_myfav_del'],$vbphrase['ll_myfav_add']).'">'.$favicon.'</a>';
			if ($linkfav and $viewcatid!=-2) {
				$linkfavbit = '<span class="highlight">'.$vbphrase[ll_myfav].'</span> '.$linkfavbit;
			}
		}

		$linkeditbit = "";
		if ($links_permissions['can_edit_link'] or $vbulletin->userinfo['userid']==$linkuserid) {
			$editicon = iif(isset($icon_cache['pencil']),
					'<img class="inlineimg" src="'.mk_file_name($links_defaults[file_icons_dir],'pencil.gif').'" alt="" border="0" />',
					'['.$vbphrase['ll_editlc'].']');
			$linkeditbit = '<a href="'.$LINKS_SCRIPT.'.php?action=editlink&amp;linkid='.$linkid.'&amp;catid='.$linkcatid.
					'&amp;page='.$pagenumber.'" title="'.$vbphrase['ll_edit'].'">'.$editicon.'</a>';
		}

	}
Replace it with this:

Code:
		$linkfavbit = "";
		if ($links_permissions["can_mark_link"]) {
			$favicon = iif(isset($icon_cache['myfav']), 
					'Favorite <img class="inlineimg" src="'.mk_file_name($links_defaults[file_icons_dir],'myfav.gif').'" alt="Favorite" border="0" />',
					'['.iif($linkfav,$vbphrase['ll_ab_favminus'],$vbphrase['ll_ab_favplus']).']');
			$linkfavbit = '<a href="'.$LINKS_SCRIPT.'.php?action=dofavlink&amp;id='.$linkid.'&amp;set='.
					iif($linkfav,"-1","1").'&amp;catid='.$linkcatid.'&amp;page='.$pagenumber.
					'" title="'.iif($linkfav,$vbphrase['ll_myfav_del'],$vbphrase['ll_myfav_add']).'">'.$favicon.'</a>';
			if ($linkfav and $viewcatid!=-2) {
				$linkfavbit = '<span class="highlight">'.$vbphrase[ll_myfav].'</span> '.$linkfavbit;
			}
		}

		$linkeditbit = "";
		if ($links_permissions['can_edit_link'] or $vbulletin->userinfo['userid']==$linkuserid) {
			$editicon = iif(isset($icon_cache['pencil']),
					'Edit <img class="inlineimg" src="'.mk_file_name($links_defaults[file_icons_dir],'pencil.gif').'" alt="Edit" border="0" />',
					'['.$vbphrase['ll_editlc'].']');
			$linkeditbit = '<a href="'.$LINKS_SCRIPT.'.php?action=editlink&amp;linkid='.$linkid.'&amp;catid='.$linkcatid.
					'&amp;page='.$pagenumber.'" title="'.$vbphrase['ll_edit'].'">'.$editicon.'</a>';
		}

	}
That will add in the associated link text and corrected alt="" portions for the images.

Now use the updated template code:

Code:
<tr>
<td colspan="2">
<div style="margin-top:3px">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td width="100%">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<td class="tcat" width="65%" align="left"><if condition="$linknew">$linknew </if>$linktypebit <strong>$linkurljump <if condition="$linksize"> Size: $linksize $vbphrase[ll_kb]</if></strong></td>
				<td class="tcat" width="35%" align="right"><if condition="$links_permissions[can_view_names]">$vbphrase[ll_submitby] <a href="member.php?u=$linkuserid">$linkusername</a> On: $linkdate</if></td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td width="100%">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<if condition="$linkimg"><td class="alt1" align="left" valign="top">$linkimgjump</td></if>
				<td class="alt1" width="100%" align="left" valign="top"><span class="smallfont">$linkdesc</span></td>
				<td class="alt1" width="100" align="right">
					<if condition="$links_permissions[can_view_hits]">
						<div align="center">
						<table cellpadding="0" cellspacing="0" border="0" width="100">
							<tr>
								<td width="100" valign="top" class="thead" align="center">Hits/Views</td>
							</tr>
							<tr>
								<td width="100" valign="top" class="tcat" align="center">$linkhits</td>
							</tr>
						</table>
						</div>
					</if>
				</td>
			</tr>
		</table>		
		</td>
	</tr>
	<tr>
		<td width="100%">
		<table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<if condition="$linkimg"><td width="15%" class="thead" align="left"><span class="smallfont">$linkimgmag</span></td></if>
				<td class="thead" width="85%" align="right">
				<span class="smallfont">
				$linkfavbit
				$linkeditbit
				<if condition="$links_permissions[can_send_tofriend]"><a href="$LINKS_SCRIPT.php?action=sendtofriend&amp;catid=$linkcatid&amp;linkid=$linkid" target="_blank" title="$vbphrase[ll_sendtofriend]">Send To Friend<img class="inlineimg" src="$stylevar[imgdir_button]/sendtofriend.gif" alt="$vbphrase[ll_sendtofriend]" border="0" /></a></if>
				<if condition="$links_permissions[can_report_link] and $linkuserid != $bbuserinfo[userid]"><a href="$LINKS_SCRIPT.php?action=reportlink&amp;linkid=$linkid&amp;catid=$viewcatid&amp;page=$pagenumber" title="$vbphrase[ll_report_bad_link]">Report Bad Link<img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[ll_report_bad_link]" border="0" /></a></if>
				</span>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
</td>
</tr>
I also updated my magnify.gif and removed the excess white space around it. I've attached it here as well as a screen shot of my final template output.

Hope this helps, enjoy.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01285 seconds
  • Memory Usage 1,812KB
  • 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
  • (5)bbcode_code
  • (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