Liquid Web Hosting - Dedicated, VPS and Shared Hosting with top-notch support

HTML Newsletter for PHP-Nuke
Clan Themes!  Making Clans Look Good!
  Login or Register
 • Home • Downloads • Your Account • Forums • 
Supported Projects!

Stop Spam Email Harvestors - Join Project HoneyPot!

Support GoPHP5.org

 
Please Link to Me!


 
Site Menu
icon_home.gif Home
· Montego's Blog
icon_community.gif Community
tree-T.gif Advertising
tree-T.gif Newsletters
tree-T.gif Downloads
tree-T.gif Web Links
tree-T.gif Content
tree-L.gif Surveys
nuke.gif Projects
tree-T.gif HTML Newsletter
tree-T.gif ShortLinks
tree-T.gif DynamicTitles
tree-L.gif Mailer
som_downloads.gif Support
tree-T.gif Forums
tree-T.gif Documentation
tree-L.gif Sitemap
icon_members.gif Members Only
Access restricted to our members Private Messages
Access restricted to our members Members List
tree-L.gif Your Account
favoritos.gif News
icon_poll.gif Misc
 
Site Info
Your IP: 38.103.63.17

Welcome, Anonymous
Nickname
Password
Security Code
Security Code
Type Security Code


· Register
· Lost Password
Server Date/Time
7 August 2008 20:34:27 EDT (GMT -4)
 
RSS/XML Feed Previews
1. News Feeds
1. Most Recent 10 Articles

2. Forum Feeds
1. Most Recent 10 Forum Posts

3. Download Feeds
1. Most Recent 10 Downloads
2. Most Popular 10 Downloads
 
Misc Info

Powered by  MyPagerank.Net

Join the HoneyPot Project and help stop spam!

RavenNuke(tm) - Most secure and fast PHP-Nuke on the web!

Get TegoNuke(tm) ShortLinks from this site and more...

This site is valid CSS!

 
Inspiration
And he saith unto me, Write, Blessed are they which are called unto the marriage supper of the Lamb. And he saith unto me, These are the true sayings of God.
Revelation 19:9/KJV
Verseoftheday.com
 
Montego Scripts: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Mon Mar 10, 2008 4:40 am Reply with quote Back to top

I have problems with avatars with spaces in the name like Charlie Brown.gif

The RewriteRule is:

RewriteRule ^account-avatarsave-([a-z]*)-([\.a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=avatarsave&category=$1&avatar=$2 [L]

If I change to spaces like this:

RewriteRule ^account-avatarsave-([a-z]*)-([\.a-zA-Z0-9_- ]*).html modules.php?name=Your_Account&op=avatarsave&category=$1&avatar=$2 [L]

I get errors and this alternative can't be used. Grateful for suggestions!
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Mon Mar 10, 2008 7:46 am Reply with quote Back to top

Would you please expound upon what you mean exactly by "I get errors"? Thanks.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Mon Mar 10, 2008 9:10 am Reply with quote Back to top

Sorry. For instance Porky Pig.gif gives this link:
http://www.mysite.com/account-avatarsave-gallery-Porky.html%20Pig.gif

If I click on it to choose it, as avatar I get this error message:
Error: Wrong avatar format! Avatars can only be gif, jpg, or png format.

If I use ([^.]+)

I get:

http://www.mysite.com/account-avatarsave-gallery-Porky Pig.html.gif

Closer, but not perfect.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Mon Mar 10, 2008 5:03 pm Reply with quote Back to top

Ok, we are kind of having to design/code/test on the fly. What I am thinking is that we might have to break this up differently. With both the GT file and .htaccess, try something along these lines instead:

RewriteRule ^account-avatarsave-([a-z]*)-([\.a-zA-Z0-9%_- ]*).html modules.php?name=Your_Account&op=avatarsave&category=$1&avatar=$2 [L]

It looks like phpBB is encoding the space or maybe that is browser/Apache based... I added the "%" into the mix to see what happens. The odd thing is that the period is escaped like this "\." which should also take into consideration the file extension. But, one thing at a time.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Mon Mar 10, 2008 5:17 pm Reply with quote Back to top

This gave server errors, because of the blank space in
[\.a-zA-Z0-9%_- ] and without the blank space, it did not give the correct result.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Mon Mar 10, 2008 9:02 pm Reply with quote Back to top

Hhmmm... sorry, try the blank space in the GT file, but then with the .htaccess rule escape it like this:

[\.a-zA-Z0-9%_-\ ]

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Tue Mar 11, 2008 12:06 am Reply with quote Back to top

I tried that, but the \ gave server error in .htaccess, unfortunately, but blank space in GT file did not give that.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Tue Mar 11, 2008 9:17 am Reply with quote Back to top

I don't understand why the difference. The escaped space works just fine for me.

Moral of the story? Don't use spaces! LOL.

Ok, just kidding. Will have to continue to dig into it...

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Tue Mar 11, 2008 3:04 pm Reply with quote Back to top

This seems to work on the test server [.a-zA-Z0-9+=\ ] but I have to test it tomorrow night on my site, when people are sleeping.
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Tue Mar 11, 2008 11:15 pm Reply with quote Back to top

Ok, I don't think that will work either on your production system as it wouldn't capture the %20? I guess we'll see.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
Slackervaara
Newbie
Newbie



Joined: Nov 03, 2007
Posts: 57

PostPosted: Wed Mar 12, 2008 1:38 am Reply with quote Back to top

I have just tested it and it worked on the site, but I have modified a little to capture - [-.a-zA-Z0-9_+=\ ]. Many thanks for your help!
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 867

PostPosted: Wed Mar 12, 2008 6:49 am Reply with quote Back to top

Thanks! I will make this thread a Sticky.

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins
View user's profile Send private message Visit poster's website
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


Powered by phpBB © 2001-2008 phpBB Group
:: Theme & Graphics by Daz :: Ported for PHP-Nuke by nukemods.com ::
All times are GMT - 4 Hours
Forums ©
 

[ Legal | Privacy Policy | Terms of Use | Contact Us ]


[Valid RSS] Valid robots.txt


All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2005 - 2008 by Montego Scripts.
Distributed by Raven PHP Scripts
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.22 Seconds

:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional & XHTML 1.0 Transitional Compliance by RavenNuke™ TEAM ::

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

Forum - Join the conversation on the Thoughts.com forums
Search Engine Ranking - Improve your SEO services. Premium Web content, intelligent links, quality optimization & competitive search engine placement. You deserve Better Rankings!
PhpNuke Themes
Lobo Links Web Directorylinear-bunch