Search Back mod

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Search Back mod
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Can this be ported to Nuke? The part for searching PM's works perfect but the forum search part doesn't work the way it is.


## MOD Title: Search back
## MOD Author: Niels < [ Register or login to view links on this board. ] > (Niels Chr. Rød) [ Register or login to view links on this board. ]
## MOD Description: This mod will make it posible to search
## by URL for post back in time by minutes.
## MOD Version: 1.2.2
## MOD Compatibility: 2.0.6
##
## Installation Level: Easy
## Installation Time: 5 Minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit: 5
## privmsg.php
## search.php
## includes/page_header.php
## language/lang_english/lang_main.php
## template/subSilver/index_body.tpl
##
## Included Files: 0
##



Attached Files
search_back_1.2.2em.txt (11.41 KB, Downloaded: 5242 Time(s))



_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#2   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Lost but not forgotten? :-)




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#3   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
Whats the error? What doesn't work?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#4   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
It puts a dropdown of search times ranging from 15 minutes to one year above the other forum search options. But when you select a time nothing happens. It puts the same dropdown in the private messages page as well but they put a GO button there and it works perfectly.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#5   
Telli
Site Admin
Telli has been a member for over 20 year's 20 Year Member
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.06 posts per day
Posts: 8089
Points: 494,430
   
When you select a time nothing happens in the Search feature? Is it because your searching for that time and nothing happened because you didnt search for anything? Really not sure how it is supposed to work.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#6   re: Search Back mod
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
It just searches for all of the posts within that time period you select from the dropdown. Here's a little snippet of the code that I think may be the operational key to this problem. Something to do with the 'onchange' command maybe.

// Start add - Search back MOD
$Select_time='<select name="search_time" size="1" onchange="SetLastVisit();" class="gensmall">
   <option value="1" SELECTED> ;;'.$lang['Select_time'].' ;;</option>
   <option value="15"> ;;'.$lang['15_min'].'</option>
   <option value="30"> ;;'.$lang['30_min'].'</option>
   <option value="45"> ;;'.$lang['45_min'].'</option>
   <option value="60"> ;;'.$lang['1_Hour'].'</option>
   <option value="120"> ;;'.$lang['2_Hour'].'</option>
   <option value="360"> ;;'.$lang['6_Hour'].'</option>
   <option value="720"> ;;'.$lang['12_Hour'].'</option>
   <option value="1440"> ;;'.$lang['1_Day'].'</option>
   <option value="10080"> ;;'.$lang['7_Days'].'</option>
   <option value="43200"> ;;'.$lang['1_Month'].'</option>
     </select>
   <input type="hidden" name="search_author" value="*">
   <input type="hidden" name="show_results" value="topics">';
// End add - Search back MOD




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#7   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Well shoot...after trying for weeks to make it work I gave up over a month ago. I just reinstalled it again for about the 6th time and it's trying to work now. I've got another error or two to find but she's breathing. Sometimes ya just gotta back off awhile I guess icon_smile.gif




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#8   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
Ok, having a tough time with this error (but I'm glad to see it doing something finally)
Parse error: parse error, unexpected T_STRING
Here's the line
WHERE post_time >= " . (($search_time)? $search_time." AND post_time >= ":'' ).$userdata['user_lastvisit'];

What should I look for to fix an unexpected T_STRING?



Edit-I moved that line up to fill in a blank line-that problem fixed. Changed a redirect in a TPL and it's working 100% now.
Very nice feature to have now that its working!!!




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#9   
pnclthnmstsh
CZ Active Member
pnclthnmstsh has been a member for over 19 year's 19 Year Member
usa.gif nevada.gif
Age: 53
Gender: Male
Website:
Status: Offline
Joined: Sep 17, 2004
0.04 posts per day
Posts: 267
Points: 13,641
   
I have recently gotten permission from the author to redistribute this port. Its a very easy 10 minute hack with no files to upload. If anyone is interested I would like to submit it here to the downloads section.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#10   
JRSweets
CZ Active Member
 Codezwiz Site Donator
JRSweets has been a member for over 20 year's 20 Year Member
usa.gif massachusetts.gif
Age: 42
Gender: Male
Fav. Sports Team: NE Patriots
Website:
Status: Offline
Joined: Apr 07, 2004
0.04 posts per day
Posts: 259
Points: 19,861
  MSN Messenger 
Yeah this is a cool mod, I just ported it and installed it on my site the other day.

I say you should submit it to the downloads. icon_biggrin.gif



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum