PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Doulos
Involved
Involved


Joined: Jun 06, 2005
Posts: 372

PostPosted: Wed Jun 27, 2007 5:17 pm Reply with quote Back to top

When I tried to change the link to a users signature image I got the following error (the link did change, however, and the new img shows).

Quote:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in /myrootRNinstall/Forums/admin/admin_users.php on line 381

Line 381 contains this:
Code:
$sig_length_check = preg_replace
Does this mean the guys sig had too many charaters?

Edit: I don't think so because I just tested it with a sig only 84 characters long and I got the same error.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Wed Jun 27, 2007 10:19 pm Reply with quote Back to top

That's not line 381. Line 381 should read like this:

Code:

$sig_length_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\>)/is', '\\1\\3\\4', $sig_length_check);


This was reported in another thread and will be fixed in the next release. In the meantime, change your line 381 with the preg_replace to match the above.
View user's profile Send private message
Doulos
Involved
Involved


Joined: Jun 06, 2005
Posts: 372

PostPosted: Thu Jun 28, 2007 2:07 am Reply with quote Back to top

Ya, I know, was only part of line 381. I didn't want to risk getting banned (I was once for pasteing some code NS didn't like), so I didn't post the whole line. Line 381:
Code:
$sig_length_check = preg_replace('/(\<.*?)(=.*?)( .*?=.*?)?([ \/]?\> / /)/is', '\\1\\3\\4', $sig_length_check);


Sorry, I did a couple of searches and also scrolled through this forum looking at the thread names, but saw nothing that caught my eye. I didn't actually read this thread
Only registered users can see links on this board!
Get registered or login to the forums!
because the title showed "Error in Forums Configuration for Site Admin". Searches are easy if you know exactly what to search for. The search results one gets from a forum of this size can be very daunting if you don't know exactly what to search for.

Thanks, replacing your 381 with mine worked.
View user's profile Send private message
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2401
Location: Iowa, USA

PostPosted: Thu Jun 28, 2007 8:50 am Reply with quote Back to top

Oh I see what you did now. I just read your post really fast and because I had fixed this bug I knew what that line looked like.

I wasn't scolding your for not searching... Wink I was just letting you know that it has been reported and will be fixed in the next release. Smile Smile
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum