phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Link posts # to find all posts


 
Search this topic... | Search MOD Requests... | Search Box
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Author Message
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Fri Dec 26, 2008 11:07 am 
Post subject: Link posts # to find all posts

Hy!

In viewtopic, where it sais underusername, the numer of posts, the number to be a link to all user's posts. icon_smile.gif

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Fri Dec 26, 2008 12:16 pm 
Post subject: Re: Link posts # to find all posts

Check out Post Search in View Topic, or: Search User's Posts from View Topic.
_________________
phpBB2 will never die, I hope!
Back to top
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Fri Dec 26, 2008 6:26 pm 
Post subject: Re: Link posts # to find all posts

The second one it's no good, it gives an error text where are the posts, also ads a little icon, wich I don't like.
The first one seems to be more itneresting, but still, something is not okay. Look at this:
Image link
It seems to somehow break the rank images, also makes posts ("mesaje" in romanian) also a link, but I want only the posts number. icon_sad.gif
Here it is what it ask me to do:
Code:
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#

      'U_POST_ID' => $postrow[$i]['post_id'])
#
#-----[ BEFORE, ADD ]------------------------------------------
#

      'U_SEARCH_USER_POSTS' => append_sid("search.$phpEx?search_author=" . urlencode($postrow[$i]['username']) . "&showresults=posts"),
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<br />{postrow.POSTER_POSTS}<br />
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_POSTS}
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
<a href="{postrow.U_SEARCH_USER_POSTS}" class="genmed">{postrow.POSTER_POSTS}</a>

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Sat Dec 27, 2008 4:38 am 
Post subject: Re: Link posts # to find all posts

Post here your viewtopic_body.tpl please.
_________________
phpBB2 will never die, I hope!
Back to top
Sylver Cheetah 53
Board Member



Joined: 17 Dec 2008

Posts: 426
Location: Milky Way


flag
PostPosted: Sat Dec 27, 2008 7:25 am 
Post subject: Re: Link posts # to find all posts

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="maintitle" valign="top">&nbsp;<a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></td>
<td class="gensmall" align="right" valign="bottom"><a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
<strong>{S_WATCH_TOPIC}</strong></td>
</tr>
</table>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a><a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" hspace="8" title="{L_POST_REPLY_TOPIC}" /></a></td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a> <!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF --> &raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
{POLL_DISPLAY}
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th width="150" height="28">{L_AUTHOR}</th>
<th width="100%">{L_MESSAGE}</th>
</tr>
<!-- BEGIN postrow -->
<tr>
<td valign="top" class="{postrow.ROW_CLASS}" rowspan="2"><span class="name"><a name="{postrow.U_POST_ID}" id="{postrow.U_POST_ID}"></a><strong>{postrow.POSTER_NAME}</strong></span><br />
<span class="postdetails">{postrow.POSTER_RANK}<br />
{postrow.RANK_IMAGE}<a href="{postrow.PROFILE_URL}">{postrow.POSTER_AVATAR}</a><br /><br />
{postrow.POSTER_JOINED}<br />
{L_MEMBER_NUMBER} {postrow.POSTER_USER_ID}<br />
<a href="{postrow.U_SEARCH_USER_POSTS}" class="genmed">{postrow.POSTER_POSTS}</a><br />
{postrow.POSTER_FROM}<br />
{postrow.YIM}</span><br />
<img src="images/spacer.gif" alt="" width="150" height="1" />
</td>
<td class="{postrow.ROW_CLASS}" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="postdetails"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" /></a>{L_POSTED}:
{postrow.POST_DATE}</td>
<td align="right" valign="top" nowrap="nowrap">{postrow.QUOTE_IMG}{postrow.EDIT_IMG}{postrow.DELETE_IMG}{postrow.KEEP_UNREAD_IMG}{postrow.IP_IMG}<a href="#top"><img src="templates/fiblue3d/images/icon_up.gif" alt="{L_BACK_TO_TOP}" width="16" height="18" title="{L_BACK_TO_TOP}" class="imgtopic" /></a></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" class="postbody">
<hr />
{postrow.MESSAGE}</td>
</tr>
<tr>
<td height="40" valign="bottom" class="genmed">{postrow.SIGNATURE}<span class="postdetails">{postrow.EDITED_MESSAGE}</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="bottom" nowrap="nowrap" class="{postrow.ROW_CLASS}">{postrow.PROFILE_IMG}{postrow.PM_IMG}{postrow.EMAIL_IMG}{postrow.WWW_IMG}{postrow.AIM_IMG}{postrow.YIM_IMG}{postrow.MSN_IMG}{postrow.ICQ_IMG}</td>
</tr>
<tr>
<td class="spacerow" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<!-- END postrow -->
<tr>
<td colspan="2" align="center" class="cat">
<form method="post" action="{S_POST_DAYS_ACTION}">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="gensmall">{L_DISPLAY_POSTS}:&nbsp;&nbsp;</td>
<td>{S_SELECT_POST_DAYS}&nbsp;</td>
<td>{S_SELECT_POST_ORDER}&nbsp;</td>
<td><input type="submit" value="{L_GO}" class="catbutton" name="submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
<script>
window.onload = resizeimg;
function resizeimg()
{
   if (document.getElementsByTagName)
   {
      for (i=0; i<document.getElementsByTagName('img').length; i++)
      {
         im = document.getElementsByTagName('img')[i];
         if (im.width > 600)
         {
            im.style.width = '600px';
            eval("pop" + String(i) + " = new Function(\"pop = window.open('" + im.src + " ','fullscale','width=400,height=400,scrollbars=1,resizable=1'); pop.focus();\")");
            eval("im.onclick = pop" + String(i) + ";");
            if (document.all) im.style.cursor = 'hand';
            if (!document.all) im.style.cursor = 'pointer';
            im.title = 'Click pentru a vedea imaginea la dimensiunea completa';
         }
      }
   }
}

</script>
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td nowrap="nowrap"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}" /></a>&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" alt="{L_POST_REPLY_TOPIC}" title="{L_POST_REPLY_TOPIC}" /></a>
<!-- BEGIN switch_quick_reply -->
&nbsp;<a href="{U_POST_SQR_TOPIC}"><img src="{SQR_IMG}" alt="{L_POST_SQR_TOPIC}" title="{L_POST_SQR_TOPIC}" /></a>
<!-- END switch_quick_reply -->
</td>
<td width="100%" class="nav"><a href="{U_INDEX}">{L_INDEX}</a>  <!-- IF PARENT_FORUM --> -> <a class="nav" href="{U_VIEW_PARENT_FORUM}">{PARENT_FORUM_NAME}</a><!-- ENDIF -->&raquo; <a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></td>
<td nowrap="nowrap" class="nav">{PAGINATION}</td>
</tr>
</table>
<!-- BEGIN switch_quick_reply -->
   {QRBODY}
<!-- END switch_quick_reply -->
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><br />
<br />
{JUMPBOX}<br />
<br />
{S_TOPIC_ADMIN}</td>
<td class="gensmall" align="right" valign="top"><strong>{S_WATCH_TOPIC}</strong><br />
<a href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a><br />
<a href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><br />
{S_AUTH_LIST}</td>
</tr>
</table>

_________________
Image link
My Forum || My Blog

phpBB2 forever! icon_smile.gif
Back to top
dogs and things
Board Member



Joined: 18 Nov 2008

Posts: 628
Location: Spain


flag
PostPosted: Sat Dec 27, 2008 1:03 pm 
Post subject: Re: Link posts # to find all posts

I am not able to see what's wrong exactly, maybe someone else?

Or else, just try out some things until you find the way to fix this. After all it's just html code that needs to be sorted.

_________________
phpBB2 will never die, I hope!
Back to top
espicom
Board Member



Joined: 24 Nov 2008

Posts: 55
Location: Woodstock, IL


flag
PostPosted: Sat Dec 27, 2008 2:26 pm 
Post subject: Re: Link posts # to find all posts

I have not had a chance to examine the MODs themselves, but, where do the links get built? The template expects them to be created in viewtopic.php, and it simply displays them. That is done in this line of viewtopic.php:

Code:
   $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : '';


This is where you would include the code to create the URL for the search, wrapped around this portion:

Code:
$postrow[$i]['user_posts']


It should then appear in the standard template as a link.
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Requests  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT - 4 Hours
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0529 seconds using 16 queries. (SQL 0.0087 Parse 0.0008 Other 0.0434)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo