Go Back   Web Scribble Forums » webNetwork » webNetwork 3 » Troubleshooting
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2010, 08:35 PM
Member
 
Join Date: Oct 2009
Posts: 31
Default htaccess file is causing my drop down menus not to work.... Please help!

So I have a php social networking application installed on my server. WebNetwork is the name... I am attempting to install a horizontal spry menu into my site... I was successful with installing it into a sub directory * Mantra3.com - Mantra Pics *

But when I attempted to install the same menu into my main directory, my menu doesn't work properly... * See Mantra3.com - A Premier Social Site exclusively for the Gay Community. *

I believe this is a problem caused by the htaccess that helps operate my php application.

The menu @ Mantra3.com - A Premier Social Site exclusively for the Gay Community. should look like the one @ Mantra3.com - Mantra Pics

I need this fixed asap. If someone can please help me recode the htaccess file or figure out something else, I'd greatly appreciate it...

Here is the htaccess file content...

Code:
#Turn off ModSecurity because it blocks our jUpload
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^p/(.*) ./rewrite.php?p=$1&%{QUERY_STRING}

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !smartway
RewriteRule ^groups/([a-zA-Z0-9_]+)$ index.php?page=groups_home&action=find_group&group=$1

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !smartway
RewriteRule ^([a-zA-Z0-9_]+)/?$ index.php?page=view_profile&mname=$1
</IfModule>
- Ken
Reply With Quote
  #2 (permalink)  
Old 02-08-2010, 10:02 AM
Junior Member
 
Join Date: Jan 2010
Posts: 5
Default

Hi,
I just checked your links. The dropdowns seem to be working fine.
How did you solve this?
Reply With Quote
  #3 (permalink)  
Old 02-13-2010, 01:00 PM
Member
 
Join Date: Oct 2009
Posts: 31
Default Resolution

I had to have a php developer re script the install script specifically for the root folder access... I'm not 100% sure why, but the script I entered was being cut off... example... if I entered 1234567890 as my php script, (in the source file) you'd only see 12345678, so some of the script was missing.

Original Code: (This code worked when installed outside of my root folder. When installed in the root folder, it rewrote the script some how and cause a syntax error)
Code:
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MantraMenu", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
This is the code rewrite to work in the root folder:
Code:
<script type="text/javascript">
<!--
var sprySettings = '';
var MenuBar1 = new Spry.Widget.MenuBar("MantraMenu", sprySettings);
//-->
</script>
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 04:56 AM.