[ABD] Search User [img] and [attachment] Posts v.0.0.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

the implemantation of this in advanced search is complex and complete different from my solution here.
i prefered this method, which is more simple to code and use, also more attractive and effective:
http://www.phpbb.com/community/viewtopi ... #p12892582
Current Mods | Mod Base | php(BB) programming | No help via PM
dkdkdkdk
Registered User
Posts: 81
Joined: Tue Jun 30, 2009 7:22 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by dkdkdkdk »

...any progress?
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

not before release of F2A and F2I..
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Mess »

AutoMod is failing on a find because, apparently it can only search from the top down. I took me a while to figure it out. So here is the fix for those not willing to install by hand.

Open install_mod.xml
Find:

Code: Select all

		<open src="language/en/common.php">
			<edit>
				<find><![CDATA[	'TOTAL_POSTS'		=> 'Total posts',]]></find>
				<action type="after-add"><![CDATA[	'TOTAL_IMGS'		=> 'Total image posts:',
	'TOTAL_ATTS'		=> 'Total attachment posts:',]]></action>
			</edit>
			<edit>
				<find><![CDATA[	'IMAGE'						=> 'Image',]]></find>
				<action type="after-add"><![CDATA[	'IMAGES'					=> 'Images',]]></action>
			</edit>			
		</open>
Replace with:

Code: Select all

		<open src="language/en/common.php">
			<edit>
				<find><![CDATA[	'IMAGE'						=> 'Image',]]></find>
				<action type="after-add"><![CDATA[	'IMAGES'					=> 'Images',]]></action>
			</edit>			
			<edit>
				<find><![CDATA[	'TOTAL_POSTS'		=> 'Total posts',]]></find>
				<action type="after-add"><![CDATA[	'TOTAL_IMGS'		=> 'Total image posts:',
	'TOTAL_ATTS'		=> 'Total attachment posts:',]]></action>
			</edit>
		</open>
Thanks for the mod 4_seven.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

thx 4 the hint. package is fixed..
Current Mods | Mod Base | php(BB) programming | No help via PM
Vova_OB
Registered User
Posts: 41
Joined: Thu May 27, 2010 7:41 am
Name: Volodymyr Oliinyk

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Vova_OB »

Help with subsilver2 instruction !
Thanks ))
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

sorry, but it is not planned to give official subsilver2 support. may as user to user support, so hopefully someone share the transforming.
Current Mods | Mod Base | php(BB) programming | No help via PM
indra
Registered User
Posts: 104
Joined: Fri Dec 31, 2010 8:20 am
Name: Indra Gunawan
Contact:

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by indra »

nice..
i wait for relase version..
Vova_OB
Registered User
Posts: 41
Joined: Thu May 27, 2010 7:41 am
Name: Volodymyr Oliinyk

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Vova_OB »

4_seven wrote:sorry, but it is not planned to give official subsilver2 support. may as user to user support, so hopefully someone share the transforming.
Thanks)
I made himself subsilver2 support for this mod on my forum ))
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

if someone success the transforming to subsilver2, it will be fine to share it...
Current Mods | Mod Base | php(BB) programming | No help via PM
Vova_OB
Registered User
Posts: 41
Joined: Thu May 27, 2010 7:41 am
Name: Volodymyr Oliinyk

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Vova_OB »

on my board this instruction Works correctly
subsilver2
memberlist_view.html

Code: Select all

For [b]memberlist_view.html[/b] - Works correctly
------
find:

<tr>
<td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_TOTAL_POSTS}: </td>
<td><b class="gen">{POSTS}</b><span class="genmed"><!-- IF POSTS_PCT --><br />[{POSTS_PCT} / {POSTS_DAY}]<!-- ENDIF --><!-- IF POSTS_IN_QUEUE and U_MCP_QUEUE --><br />[<a href="{U_MCP_QUEUE}">{L_POSTS_IN_QUEUE}</a>]<!-- ELSEIF POSTS_IN_QUEUE --><br />[{L_POSTS_IN_QUEUE}]<!-- ENDIF --><!-- IF S_DISPLAY_SEARCH --><br /><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a><!-- ENDIF --></span></td>
</tr>

add after:

<tr>
<td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_TOTAL_IMGS} </td>
<td><b class="gen">{IMG_POSTS}</b><br/><span class="genmed"><!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH_IMG}">{L_SEARCH_USER_IMGS}</a><!-- ENDIF --></span></td>
</tr>
<tr>
<td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_TOTAL_ATTS} </td>
<td><b class="gen">{ATT_POSTS}</b><br/><span class="genmed"><!-- IF S_DISPLAY_SEARCH --><a href="{U_SEARCH_ATT}">{L_SEARCH_USER_ATTS}</a><!-- ENDIF --></span></td>
</tr>
------------------------
memberlist_body.html

Code: Select all

for [b]memberlist_body.html[/b] - Works correctly

find:

<th nowrap="nowrap" ><a href="{U_SORT_POSTS}">{L_POSTS}</a>{L_COMMA_SEPARATOR}<a href="{U_SORT_TOPICS}">{L_TOPICS}</a></th>

add after:

<th nowrap="nowrap">{L_IMAGES}</th>			
<th nowrap="nowrap">{L_ATTACHMENTS}</th>

find:

<td class="gen<!-- IF memberrow.S_ROW_COUNT is even --> row2<!-- ELSE --> row1<!-- ENDIF -->" align="center">{L_POSTS} {memberrow.POSTS}<br />{L_TOPICS} {memberrow.TOPICS}</td>

add after:

<td class="gen<!-- IF memberrow.S_ROW_COUNT is even --> row2<!-- ELSE --> row1<!-- ENDIF -->" align="center"><!-- IF memberrow.POSTS and S_DISPLAY_SEARCH -->{L_IMAGES} <a href="{memberrow.U_SEARCH_IMG}" title="{L_SEARCH_USER_IMGS}">{memberrow.IMG_POSTS}</a><!-- ELSE -->{L_IMAGES} {memberrow.IMG_POSTS}<!-- ENDIF --></td>
<td class="gen<!-- IF memberrow.S_ROW_COUNT is even --> row2<!-- ELSE --> row1<!-- ENDIF -->" align="center"><!-- IF memberrow.POSTS and S_DISPLAY_SEARCH -->{L_ATTACHMENTS} <a href="{memberrow.U_SEARCH_ATT}" title="{L_SEARCH_USER_ATTS}">{memberrow.ATT_POSTS}</a><!-- ELSE -->{L_ATTACHMENTS} {memberrow.ATT_POSTS}<!-- ENDIF --></td>


[b]and find in 4 place:  colspan=8 replace with colspan=10[/b]

[b]must by with colspan="10" [/b]

<!-- IF S_SHOW_GROUP -->
		<!-- IF memberrow.S_FIRST_ROW and memberrow.S_GROUP_LEADER -->
			<tr class="row3">
			
				<td colspan="10" class="row1"><b class="gensmall">{L_GROUP_LEADER}</b></td>
			</tr>
		<!-- ELSEIF not memberrow.S_GROUP_LEADER and not $S_MEMBER_HEADER -->
			<tr class="row3">
			
				<td colspan="10" class="row1"><b class="gensmall">{L_GROUP_MEMBERS}</b></td>
			</tr>
				<!-- DEFINE $S_MEMBER_HEADER = 1 -->
		<!-- ENDIF -->
	<!-- ENDIF -->
-------
[b]must be[/b]
<tr>
	
		<td class="row1" colspan="<!-- IF S_IN_SEARCH_POPUP -->11<!-- ELSE -->10<!-- ENDIF -->" align="center">
			<span class="gen"><!-- IF S_SHOW_GROUP -->{L_NO_GROUP_MEMBERS}<!-- ELSE -->{L_NO_MEMBERS}<!-- ENDIF --></span>
		</td>
	</tr>

<!-- END memberrow -->

<tr>
	<td class="cat" colspan="<!-- IF S_IN_SEARCH_POPUP -->11<!-- ELSE -->10<!-- ENDIF -->" align="center"><!-- IF S_IN_SEARCH_POPUP and not S_SELECT_SINGLE --><input class="btnlite" type="submit" value="{L_SELECT_MARKED}" /><!-- ELSE --><span class="gensmall">{L_SELECT_SORT_METHOD}:</span>&nbsp;<select name="sk">{S_MODE_SELECT}</select>&nbsp; <span class="gensmall">{L_ORDER}</span>&nbsp;<select name="sd">{S_ORDER_SELECT}</select>&nbsp; <input type="submit" name="submit" value="{L_SUBMIT}" class="btnlite" /><!-- ENDIF --></td>
</tr>
-----------
for search_results.html - I am not assured of correctness of my instruction to this file,but this mod good works on board

Code: Select all

[b]search_results.html[/b] 
find:

<table width="100%" cellspacing="1">
<tr>
	<td colspan="2"><span class="titles"><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --></span><br /></td>
</tr>
<tr>
	<td class="genmed"><!-- IF SEARCH_TOPIC -->{L_SEARCHED_TOPIC}: <a href="{U_SEARCH_TOPIC}"><b>{SEARCH_TOPIC}</b></a><br /><!-- ENDIF --><!-- IF SEARCH_WORDS -->{L_SEARCHED_FOR}: <a href="{U_SEARCH_WORDS}"><b>{SEARCH_WORDS}</b></a><!-- ENDIF --><!-- IF IGNORED_WORDS --> {L_IGNORED_TERMS}: <b>{IGNORED_WORDS}</b><!-- ENDIF --></td>
	<td align="{S_CONTENT_FLOW_END}"><!-- IF SEARCH_IN_RESULTS --><span class="genmed">{L_SEARCH_IN_RESULTS}: </span><input class="post" type="text" name="add_keywords" value="" /> <input class="btnlite" type="submit" name="submit" value="{L_GO}" /><!-- ENDIF --></td>
</tr>
</table>

replace with:

<!-- IF not (S_SHOW_IMG_S or S_SHOW_ATT_S) -->
<table width="100%" cellspacing="1">
<tr>
	<td colspan="2"><span class="titles"><!-- IF SEARCH_TITLE -->{SEARCH_TITLE}<!-- ELSE -->{SEARCH_MATCHES}<!-- ENDIF --></span><br /></td>
</tr>
<tr>
	<td class="genmed"><!-- IF SEARCH_TOPIC -->{L_SEARCHED_TOPIC}: <a href="{U_SEARCH_TOPIC}"><b>{SEARCH_TOPIC}</b></a><br /><!-- ENDIF --><!-- IF SEARCH_WORDS -->{L_SEARCHED_FOR}: <a href="{U_SEARCH_WORDS}"><b>{SEARCH_WORDS}</b></a><!-- ENDIF --><!-- IF IGNORED_WORDS --> {L_IGNORED_TERMS}: <b>{IGNORED_WORDS}</b><!-- ENDIF --></td>
	<td align="{S_CONTENT_FLOW_END}"><!-- IF SEARCH_IN_RESULTS --><span class="genmed">{L_SEARCH_IN_RESULTS}: </span><input class="post" type="text" name="add_keywords" value="" /> <input class="btnlite" type="submit" name="submit" value="{L_GO}" /><!-- ENDIF --></td>
</tr>
</table>
<!-- ENDIF -->
if you search mistakes in this instruction, write to me

thanks
Last edited by Vova_OB on Fri Mar 04, 2011 7:38 am, edited 4 times in total.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

many thanks for sharing. have it linked in first post..
Current Mods | Mod Base | php(BB) programming | No help via PM
Vova_OB
Registered User
Posts: 41
Joined: Thu May 27, 2010 7:41 am
Name: Volodymyr Oliinyk

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Vova_OB »

4_seven

Thanks to you and your team for this mod )
Vova_OB
Registered User
Posts: 41
Joined: Thu May 27, 2010 7:41 am
Name: Volodymyr Oliinyk

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by Vova_OB »

How I can add custom bbcode tags similar with [ img ][ /img ] in script?

I have 6 custom bbcode tags and I want that img searching search img and my 6 tags !
[lightmiddle][/lightmiddle]
[lightmax][/lightmax]
[lightmini][/lightmini]
[lightmini][/lightmini]
[lightnamemax][/lightnamemax]
[lightnamemiddle][/lightnamemiddle]

Help please)

Thaks
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Search User [img] and [attachment] Posts v.0.0.2

Post by 4_seven »

for that you must transform the main code. means, duplicate the main functions with the choosen bbcode-tags. i have no time for personal-work, so you must figure it out.
Current Mods | Mod Base | php(BB) programming | No help via PM
Locked

Return to “[3.0.x] Abandoned MODs”