Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic <replace all> in new BoardMod (Read 2742 times)
groundup
New Member
*
Offline


I love YaBB 1 Gold!

Posts: 2
Joined: Aug 30th, 2001
<replace all> in new BoardMod
Jul 25th, 2002 at 6:45am
Print Post  
I would like to see a tag like <replace all> or any of the tags such as <add after all> which would do the requested action to ALL of the script.

I have been racking my brains out for the past couple of weeks with making a script that would find and replace using PHP.  only last night did I start using regex and I STILL can't get it to work Sad
  

www.Boardnation.com - free message board hosting.
Back to top
IP Logged
 
DanX vs SoNiC
God Member
*****
Offline


TOTTENHAM HOTSPURS FOREVER!!!

Posts: 1675
Location: Scarborough
Joined: Sep 4th, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #1 - Jul 28th, 2002 at 9:30pm
Print Post  
Where would this idea be used???

btw BoardMod is written in Dephi. 8)
  

Email "The User Formally Known As Sonic : mail@danscotson.co.uk
Back to top
 
IP Logged
 
Corey Chapman
Forum Administrator
*****
Offline


I love YaBB!

Posts: 116
Location: Bourbonnais, IL
Joined: Jul 13th, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #2 - Jul 29th, 2002 at 4:33pm
Print Post  
That would be a useful tag for instances where there may be a recurring item 4 or more times in a script.  Otherwise, you have to find them all, and make a new <replace> statement for each one in your mod.  <replace all> would keep you from even having to search for other instances of the string.
  
Back to top
WWW  
IP Logged
 
MattJ
God Member
*****
Offline


I am the one and only
clone!

Posts: 501
Location: spotsylvania
Joined: Jan 19th, 2002
Gender: Male
Re: <replace all> in new BoardMod
Reply #3 - Jul 29th, 2002 at 6:11pm
Print Post  
good idea when t master gets back he might take this into his latest version!
  

hehe I need to find a new host for my sigs and graphics.
Back to top
YIMAIM  
IP Logged
 
DanX vs SoNiC
God Member
*****
Offline


TOTTENHAM HOTSPURS FOREVER!!!

Posts: 1675
Location: Scarborough
Joined: Sep 4th, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #4 - Jul 30th, 2002 at 9:09pm
Print Post  
I remember I had a few of these replace the same code in the same file. This would not really speed it up too much ???

Worth the suggestion to the BoardMod writers though it the mods start getting more complex. 8)
  

Email "The User Formally Known As Sonic : mail@danscotson.co.uk
Back to top
 
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #5 - Jul 30th, 2002 at 9:54pm
Print Post  
hm... i don't think such a tag would increase the mod development much...
we shouldn't have too much tags btw, i think.
  
Back to top
WWW  
IP Logged
 
BHRA Webmaster
God Member
*****
Offline


Mod Author of the Year
2002

Posts: 5238
Location: BHRA Headquarters
Joined: Jan 18th, 2002
Gender: Male
Re: <replace all> in new BoardMod
Reply #6 - Jul 30th, 2002 at 10:24pm
Print Post  
An <if exists> tag might be useful though for mod compatibility.
  


World Domination, one smiley at a time!
Back to top
 
IP Logged
 
Tea-Master
Forum Administrator
*****
Offline



Posts: 1945
Location: north germany
Joined: Oct 21st, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #7 - Jul 30th, 2002 at 10:57pm
Print Post  
Quote:
An <if exists> tag might be useful though for mod compatibility.

yep we also thought about that. it's a good idea in my opinion but we'll see how to integrate that.
however it's in my mind and we'll discuss about it again - thx to remind me BHRA Wink
  
Back to top
WWW  
IP Logged
 
DanX vs SoNiC
God Member
*****
Offline


TOTTENHAM HOTSPURS FOREVER!!!

Posts: 1675
Location: Scarborough
Joined: Sep 4th, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #8 - Aug 1st, 2002 at 9:11am
Print Post  
What other tags do you have in mind???
  

Email "The User Formally Known As Sonic : mail@danscotson.co.uk
Back to top
 
IP Logged
 
Michael
God Member
*****
Offline


Recursion \Re*cur"sion\,
n. - See recursion.

Posts: 1003
Joined: Oct 23rd, 2001
Gender: Male
Re: <replace all> in new BoardMod
Reply #9 - Aug 17th, 2002 at 3:04am
Print Post  
I think things like <chmod> and <upload> were some of the discussed tags, in addition to the ones currently in:
Quote:
<id> : Mod name
<version> : Mod version
<mod info> : Mod description
<author> : Mod author or author(s)
<homepage> : Homepage(s) from Mod author
<edit file> : let's BM open a file to edit
<search for> : BM searches for the following string ( problems with
tabulators, line breaks and hidden characters if a mod writer didn’t pay
attention to that)
<add after> : adds the following string behind the searched string ( first u
have to use the search tag after that u use the other "text-editing"-tags
<add before> :  writes the following string before the searched string
<replace> : replaces the searched string


We still haven't gotten to cementing a list to use.
  

~ Michael ~
-------------
The MikeCam
A truly wise man never plays leapfrog with a unicorn.
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint