68 Classifieds Forums

Modification: Search Engine Friendly URL

This is a discussion on Modification: Search Engine Friendly URL within the v3.1 Modules & Modifications forums, part of the v3.1 Legacy Help & Support category; Hi Blair, I have the hosted version (hosted by 68classifieds). I am not sure what they use for servers. I ...


Go Back   68 Classifieds Forums > v3.1 Legacy Help & Support > v3.1 Modules & Modifications

Reply
 
LinkBack Thread Tools Display Modes
  #41  
Old 05-10-2007, 02:50 AM
Junior Member
 
Join Date: May 2007
Posts: 11
Rep Power: 7
darby64 is on a distinguished road
Default SEO problem

Hi Blair,

I have the hosted version (hosted by 68classifieds). I am not sure what they use for servers. I guess I will submit a ticket then.

Doug
Reply With Quote
  #42  
Old 05-10-2007, 11:41 AM
Staff
 
Join Date: Mar 2006
Posts: 385
Rep Power: 19
Blair will become famous soon enough
Default

Hi Doug-

The SEO module was missing the .htaccess file - that's why you were receiving the errors.

Thanks-
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Reply With Quote
  #43  
Old 06-17-2007, 07:45 PM
VanWertAds*com's Avatar
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
VanWertAds*com is on a distinguished road
Default

Ok... the mod is installed but does not seem to be working like it should... when you click on a link it still shows the .php in the url.... could someone take a look at this for me and let me know what I am doing wrong... Thanks

SITE URL
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
  #44  
Old 06-17-2007, 08:32 PM
Staff
 
Join Date: Mar 2006
Posts: 385
Rep Power: 19
Blair will become famous soon enough
Default

You mentioned that you uploaded the SEO module files. Did you login to administration and activate the SEO module?

- Login
- Click on Manage modules
- Click on 'Regenerate'
- On the SEO Mod row, click on 'Install' then 'Activate'

Could you check it, please?
Thanks-
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Reply With Quote
  #45  
Old 06-18-2007, 03:25 AM
VanWertAds*com's Avatar
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
VanWertAds*com is on a distinguished road
Question

Quote:
Originally Posted by motoenth View Post
You mentioned that you uploaded the SEO module files. Did you login to administration and activate the SEO module?

- Login
- Click on Manage modules
- Click on 'Regenerate'
- On the SEO Mod row, click on 'Install' then 'Activate'

Could you check it, please?
Thanks-
Triple checked and the mod is installed and active... when you click on any link on the home page or any page for that matter all urls end in .php instead of .html... now if you entered into the browser the site url .html it works also... how do I get it to use the .html ext through out the site.... I also checked and the .htaccess file is uploaded???
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
  #46  
Old 06-18-2007, 11:12 AM
juven14's Avatar
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 2,132
Rep Power: 57
juven14 is a jewel in the rough
Send a message via Skype™ to juven14
Default

This sounds like the module system bug. Can you open includes/classes/kernel/Modules.php

This is the original Modules.php code:

PHP Code:
function call_hook($function$params$type="user")
    {
        
// Find all the user modules
        
$sSQL='SELECT name, directory FROM '.PREFIX.'modules WHERE state=3';
         
$result=$this->db->query($sSQL);
         
         while(
$rs=$result->fetch())
         {
             if (@
file_exists(FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php'))
            {
                require_once(
FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php');
            }
            
$function_name $rs['name'].'_'.$function;
            if (
function_exists($function_name))
            {
                
call_user_func($function_name($params)); // Call $function
            
}
         }
         return;
    } 
However this prevents the use of returns so it has to be changed to this:

PHP Code:
function call_hook($function$params$type="user")
    {
        
// Find all the user modules
        
$sSQL='SELECT name, directory FROM '.PREFIX.'modules WHERE state=3';
         
$result=$this->db->query($sSQL);
         
         while(
$rs=$result->fetch())
         {
             if (@
file_exists(FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php'))
            {
                require_once(
FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php');
            }
            
$function_name $rs['name'].'_'.$function;
            if (
function_exists($function_name))
            {
                
$return .= call_user_func($function_name$params); // Call $function
            
}
         }
        return 
$return
    } 
__________________
Regards,

John


“By perseverance, study, and eternal desire, any man can become great.” George S. Patton
Reply With Quote
  #47  
Old 06-22-2007, 12:08 AM
VanWertAds*com's Avatar
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
VanWertAds*com is on a distinguished road
Question

Thanks John

The mod is now working.... but after making the changes when I click on printer-friendly version to print the ad or when clicking on Email A Friend Link I get a Error on page in the status bar stating....

Line: 14
Char: 4
Error: No such interface supported
Code: 0
Url: vanwertads.com/listings/24/SpongeBob_Toddler_Bed.html

Everything else works that I know of but I can't print the ad or email it to a friend.

Also here is what my original Modules.php code looked like before I made any changes

PHP Code:
function call_hook($function$params$type="user")
    {
        
// Find all the user modules
        
$sSQL='SELECT name, directory FROM '.PREFIX.'modules WHERE state=3';
         
$result=$this->db->query($sSQL);

         while(
$rs=$result->fetch())
         {
             if (@
file_exists(FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php'))
            {
                require_once(
FILESYSTEM_PATH .'modules/'.$rs['directory'].'/mod_'.$type.'.php');
            }
            
$function_name $rs['name'].'_'.$function;
            if (
function_exists($function_name))
            {
                return 
$function_name($params); // Call $function
            
}
         }
    } 
Any suggestions???
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
  #48  
Old 06-22-2007, 12:40 AM
VanWertAds*com's Avatar
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
VanWertAds*com is on a distinguished road
Default

OK... I cleared my compilied templates and I am not getting the errors any more but now when I click on printer-friendly version... at the bottom where it states: "This page is also available for viewing online at:" the only thing their is viewlisting/24.html

Click Here to see what I am talking about...

Thanks for your help,
-Josh
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"
Reply With Quote
  #49  
Old 06-22-2007, 12:09 PM
Staff
 
Join Date: Mar 2006
Posts: 385
Rep Power: 19
Blair will become famous soon enough
Default

Josh-

The link is not being sent to the template. If you open this page, you can see that the {$link} value is not being sent to the printer/printlisting.tpl.php page....

I would recommend uploading the original printer.php file and the original printlisting.tpl.php file...
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
Reply With Quote
  #50  
Old 06-22-2007, 01:59 PM
VanWertAds*com's Avatar
Member
 
Join Date: Feb 2007
Location: Ohio
Posts: 56
Rep Power: 9
VanWertAds*com is on a distinguished road
Default

Quote:
Originally Posted by motoenth View Post
Josh-

The link is not being sent to the template. If you open this page, you can see that the {$link} value is not being sent to the printer/printlisting.tpl.php page....

I would recommend uploading the original printer.php file and the original printlisting.tpl.php file...
ok I'll give it a try.... but this did not start happening untill I made the above changes in johns listing.

Could clearing out my compilied templates be the reason??

Here is the code without any changes:

PHP Code:
<td colspan="2"><div align="center"> <strong>{$smarty.const.LANG_PRINT_VIEW_ONLINE}</strong><br />
                    <
font color="blue"><strong><u>{$smarty.const.URL}/viewlisting.php?view={$listingid}</u></strong></font></div></td
__________________
V3.1.5b Hosted
vanwertads*.com

"Do unto others as you would expect others to do unto you"

Last edited by VanWertAds*com; 06-22-2007 at 03:45 PM.
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search Engine Friendly URL's Chad Pre Sales Questions 5 02-02-2007 06:26 PM
Search engine friendly? Unregistered Pre Sales Questions 2 12-22-2006 12:01 PM
Search Engine Friendly urls Mikael v3.1 Questions & Support 1 06-23-2006 09:43 AM
Search engine friendly urls SkGold v3.1 Questions & Support 3 06-15-2006 12:40 AM
Search Engine Friendly URL's Eric Barnes v3.1 Questions & Support 2 04-26-2006 01:16 PM


All times are GMT -4. The time now is 03:24 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22