[Beta] Search Forum BBcode

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

[Beta] Search Forum BBcode

Post by danb00 » Fri Mar 12, 2004 10:34 am

This is a bbcode based on wGEric's google bbcode
It allows a user to search their forum for the word they used in the bbcode

im going to be updating this :)

Demo
DOWN

Code: Select all

############################################################## 
## MOD Title: Search Forum Using forum Search
## MOD Author: danb00 < extreme@extremephpbb.com > (Daniel) http://www.extremephpbb.com 
## MOD Description: Adds a new bbcode.  Allows you to use the forums search function to seach your forum
## MOD Version: 0.1
## 
## Installation Level: (Easy) 
## Installation Time: 10 Minutes
## Files To Edit: - posting.php
##                - includes/bbcode.php,
##                - langugage/lang_english/lang_main.php,
##                - templates/subSilver/bbcode.tpl,
##                - templates/subSilver/posting_body.tpl
## Included Files: n/a
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 		  You must have Multiple BBCode MOD installed for this to work.
##      Get it here: http://www.phpbb.com/phpBB/viewtopic.php?t=74705
##
##      example:
##		  [search]string to search for[/search]
##
##	Thanks to wGEric's google bbcode, as this code is based on it!
##
## 
############################################################## 
## MOD History: 
##
##   2004-03-11 - Version 0.1 
##      	- First Release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 

#
#-----[ OPEN ]---------------------------------
#
posting.php

#
#-----[ FIND ]---------------------------------
#
$EMBB_keys = array(''

#
#-----[ IN-LINE FIND ]---------------------------------
#
 array(''

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'0'

#
#-----[ FIND ]---------------------------------
#
$EMBB_widths = array(''

#
#-----[ IN-LINE FIND ]---------------------------------
#
 array(''

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'55'

#
#-----[ FIND ]---------------------------------
#
$EMBB_values = array(''

#
#-----[ IN-LINE FIND ]---------------------------------
#
$EMBB_values = array(''

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'search'

#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#	'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
	'L_BBCODE_F_HELP' =>

#
#-----[ AFTER, ADD ]--------------------------------
#

	'L_BBCODE_0_HELP' => $lang['bbcode_0_help'],
#
#-----[ OPEN ]------------------------------------------
#
includes/bbcode.php

#
#-----[ FIND ]------------------------------------------
#
	$bbcode_tpl['email'] = str_replace('{EMAIL}', '\\1', $bbcode_tpl['email']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
  $bbcode_tpl['search'] = '\'' . $bbcode_tpl['search'] . '\'';
  $bbcode_tpl['search'] = str_replace('{STRING}', "' . str_replace('\\\"', '\"', '\\1') . '", $bbcode_tpl['search']);
  $bbcode_tpl['search'] = str_replace('{QUERY}', "' . urlencode(str_replace('\\\"', '\"', '\\1')) . '", $bbcode_tpl['search']);

#
#-----[ FIND ]------------------------------------------
#
	$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
	
	// [search]search your forums[/search] code..
	$patterns[] = "#\[search\](.*?)\[/search\]#ise";
	$replacements[] = $bbcode_tpl['search'];
#
#-----[ OPEN ]---------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#$lang['bbcode_f_help'] = "Font size: [size=x-small]small text[/size]";
#
$lang['bbcode_f_help'] =

#
#-----[ AFTER, ADD ]---------------------------------
#

$lang['bbcode_0_help'] = "Forums: [search]String to search your forum for[/search] (alt+0)";

#
#-----[ OPEN ]------------------------------------------ 
#
templates/subSilver/bbcode.tpl
    
#
#-----[ FIND ]------------------------------------------ 
#
<!-- BEGIN email --><a href="mailto:{EMAIL}">{EMAIL}</A><!-- END email -->
#
#-----[ AFTER, ADD ]------------------------------------------ 
#

<!-- BEGIN search --><a href="search.php?search_keywords={QUERY}" target="_blank">{STRING}</a><!-- END search -->
#
#-----[ OPEN ]---------------------------------
#
templates/subSilver/posting_body.tpl

#
#-----[ FIND ]---------------------------------
#
# NOTE: the full line to look for is:
#f_help = "{L_BBCODE_F_HELP}";
#
f_help =

#
#-----[ AFTER, ADD ]---------------------------------
#
n0_help = "{L_BBCODE_0_HELP}";

#
#-----[ FIND ]---------------------------------
#
# NOTE: the actual line to find is MUCH longer, containing all the bbcode tags
#
bbtags = new Array(

#
#-----[ IN-LINE FIND ]---------------------------------
#
'[url]','[/url]'

#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[search]','[/search]'

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
#
# EoM
Last edited by danb00 on Fri Dec 30, 2005 11:21 am, edited 3 times in total.
phpBBModded.com - Modding phpBB

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Sat Mar 13, 2004 6:41 pm

Anyone installed my mod?
phpBBModded.com - Modding phpBB

User avatar
beggers
Registered User
Posts: 1257
Joined: Fri Nov 23, 2001 8:19 pm
Location: Las Vegas
Contact:

Post by beggers » Sun Mar 14, 2004 9:15 am

danb00 wrote: Anyone installed my mod?


Unfortunately, your demo link doesn't work. I tried to test the mod there but no luck.

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Sun Mar 14, 2004 12:28 pm

as im re doing my forum, and had to reupload everything
phpBBModded.com - Modding phpBB

MarK0
Registered User
Posts: 56
Joined: Fri Jan 09, 2004 6:42 am

OMG

Post by MarK0 » Sun Mar 14, 2004 1:11 pm

u know i just post here .. to let u know about your fullymodedd forums that u just west your time and put other poeple in the troble .. i was one of who use fullymodded by this guy MJ the stupid one .. i delete my forums have over then 7000 Memeber and over then 20000 posting .etc.. just to make my own ..phpbb is easy to Modify and add any mod .. that is .. sorry if there is anything but .. i dont like Fully modded .. i will be Anti For the poeple who is Modded phpbb :D

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Sun Mar 14, 2004 5:38 pm

why did that have to be posted here?
does my MOD have anything to do with a modded phpBB?
No!

Also i dont like phpbbfm for reasons

Also it's your problem if you used a pre modded phpBB not mine.

So please dont post none mod related stuff in my mod topic
phpBBModded.com - Modding phpBB

User avatar
Xxh2kxX
Registered User
Posts: 149
Joined: Fri Aug 22, 2003 6:03 pm
Contact:

lol

Post by Xxh2kxX » Mon Mar 15, 2004 10:38 pm

danb00 wrote: why did that have to be posted here?
does my MOD have anything to do with a modded phpBB?
No!

Also i dont like phpbbfm for reasons

Also it's your problem if you used a pre modded phpBB not mine.

So please dont post none mod related stuff in my mod topic



anywya thanks .. and nice mod..

lol i dont like any fullymodded becz i can install over then 30 mod .. in one sec with the easy mod .. the fully moded they ching everything in him own .. .. and also the poeple when they come familer with the phpbb they will hate fully moded becz they will understand everythign how to add the mod .. etc.. MJ this guy is one of the foolish :D guy i see .. he west him time .. my god if i go to install him board .. i cant really stop to Scroll Down and find what i want .. . well its westing of time .. anyway if will talk about fullymodded iwill not stop :D just 4 get............


hey again nice mod .. :D

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Sat Mar 27, 2004 10:24 am

any bugs found?

if not gonna get it sunmitted
phpBBModded.com - Modding phpBB

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Tue Apr 20, 2004 9:31 am

submitted on 20th april 2004 11:26am GMT


hope people use this and like it

as i think it's a good mod
phpBBModded.com - Modding phpBB

MJ
Registered User
Posts: 180
Joined: Thu Jan 03, 2002 10:20 pm
Contact:

Re: OMG

Post by MJ » Sun Jun 06, 2004 6:37 pm

MarK0 wrote: by this guy MJ the stupid one

Xxh2kxX wrote: MJ this guy is one of the foolish guy i see


ROFLMAO!!!!!!!!!!!!! :roll: :roll:

Tom_S
Registered User
Posts: 524
Joined: Tue Jul 29, 2003 6:54 pm
Location: 127.0.0.1
Contact:

Post by Tom_S » Mon Mar 07, 2005 7:11 pm

Dude, I don't think anyone is using this MOD. Maybe it gives you more time to hammer out the Day/Night MOD. I like it.
I went back in Time...
Image

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Tue Mar 08, 2005 8:16 am

true true, but this mod is finished and waiting to be submitted. :)
phpBBModded.com - Modding phpBB

Tom_S
Registered User
Posts: 524
Joined: Tue Jul 29, 2003 6:54 pm
Location: 127.0.0.1
Contact:

Post by Tom_S » Tue Mar 08, 2005 3:59 pm

danb00 wrote: true true, but this mod is finished and waiting to be submitted. :)


I will install it later today and let you know what I think. Not that I have a valuable opinion but I run three websites with phpbb so maybe it will help a little :wink:
I went back in Time...
Image

FX
Registered User
Posts: 254
Joined: Thu Aug 01, 2002 9:29 pm
Location: France
Contact:

Post by FX » Tue Mar 08, 2005 7:40 pm

The php extension is hard coded in bbcode.tpl bad idea. Can you change this please.

danb00
Registered User
Posts: 1025
Joined: Sun Dec 15, 2002 9:41 pm
Location: Inside Mod:Extreme PHPBB
Contact:

Post by danb00 » Tue Mar 08, 2005 7:46 pm

i can try :)
phpBBModded.com - Modding phpBB

Post Reply

Return to “[2.0.x] MODs in Development”