• [Mod] Search Engine Friendly URLs aka Short URLs 3 0 5 1
Currently:  

Author Topic: [Mod] Search Engine Friendly URLs aka Short URLs  (Read 729693 times)

0 Members and 4 Guests are viewing this topic.

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #330 on: August 02, 2006, 12:29:16 AM »
How can I generate the short url to used with the info, something like: {image_short_url} and this display the link to the image but using short url

thanks for your help
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #331 on: August 02, 2006, 01:06:57 AM »
I have no ideat what is that you are asking about...display where?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #332 on: August 03, 2006, 05:34:30 AM »
People who are using 1.7.3 ,

I tested both the versions of this MOD ... ie Page 1 and Page 14 ,

Please note :  the pg. 14th mod is not working for 1.7.3
------------------------------------------------------------------------------------------
i can be happy with the pg.1 but need to know does the 14th pg. mod is better in terms of SEO if yes ... pls. help the coding for 1.7.3 as well.



Offline Panther_1

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #333 on: August 10, 2006, 11:27:29 AM »
I think it is time to get Search Engine Friendly URL's in the main distirbution.
For this I open an topic in the Feedback & Suggestions Forum.

There are no comments from any developer so far but from some user who want this too.



Offline lover2

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #334 on: August 13, 2006, 12:42:01 AM »
hello
can i use mod sef urls  for 4image gallery 1.7.3
i am not profession  :oops:
please guide me step by step 
sorry for my english
thank you

Offline sajwal

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #335 on: August 13, 2006, 01:05:06 AM »
hello
can i use mod sef urls  for 4image gallery 1.7.3
i am not profession  :oops:
please guide me step by step 
sorry for my english
thank you

Yes, you can use for 1.7.3 but the first 1st page mod . i am using it, works fine for me
but found problem using the 14th page mod

Offline lover2

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #336 on: August 13, 2006, 01:44:41 AM »
hi
i use it for 1.7.3
but it say this error in header gallery

Code: [Select]
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/woh06000/public_html/4imagegallery/includes/sessions.php:1) in /home/woh06000/public_html/4imagegallery/includes/sessions.php on line 84

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/woh06000/public_html/4imagegallery/includes/sessions.php:1) in /home/woh06000/public_html/4imagegallery/includes/sessions.php on line 84

Warning: Cannot modify header information - headers already sent by (output started at /home/woh06000/public_html/4imagegallery/includes/sessions.php:1) in /home/woh06000/public_html/4imagegallery/includes/sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/woh06000/public_html/4imagegallery/includes/sessions.php:1) in /home/woh06000/public_html/4imagegallery/includes/sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at /home/woh06000/public_html/4imagegallery/includes/sessions.php:1) in /home/woh06000/public_html/4imagegallery/includes/sessions.php on line 92


what is the problem ?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #337 on: August 13, 2006, 02:05:03 AM »
you have something above/before <?php in includes/sessions.php
Perhaps you edit in a editor that uses UTF-8/UNICODE encoding and it saves so-called "BOM" info with the file. (Notepad/wordpad can do that). Make sure when you save the file, it saves in ASCII encoding.

Another possibility is that you uploaded modifyed .php files in binary mode and not in ASCII (text).
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lover2

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #338 on: August 13, 2006, 02:44:30 PM »
hello
tnx for your guide (it work for my gallery )tnx

i have another question
this is my gallery www.freertl.com/4imagetest
how can i change link categories and image
for exapmle
http://www.freertl.com/4imagetest/img2.htm

to this :
http://www.freertl.com/4imagetest/madonna.htm
or
http://www.freertl.com/4imagetest/cat-madonna.htm

 

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #339 on: August 13, 2006, 07:53:22 PM »
please start reading the replys, we've discussed this already and there is a working code somewhere in the replys...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lover2

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #340 on: August 14, 2006, 12:27:12 AM »
hi
i use this code: http://www.4homepages.de/forum/index.php?topic=6729.msg57268#msg57268
but my gallery have a problem it say this error :
Code: [Select]
Fatal error: Call to undefined function get_category_url() in /home/woh06000/public_html/4imagetest/includes/sessions.php on line 456

you can see my gallery with error: http://www.freertl.com/4imagetest

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #341 on: August 14, 2006, 12:41:14 AM »
hmmm...what if you add the code in step 2 into includes/functions.php instead of includes/sessions.php ?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline lover2

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #342 on: August 14, 2006, 12:57:09 AM »
i add this code
Code: [Select]
//Mod_bmollet
/**
* Get the category url
* @param int $cat_id The id of the category
* @param string $cat_url The current status of the URL
*/
function get_category_url($cat_id,$cat_url = '')
{
global $site_db;
$sql = "SELECT cat_name,cat_parent_id FROM ".CATEGORIES_TABLE." WHERE cat_id = '".$cat_id."'";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$row['cat_name'] = strtr($row['cat_name'], "éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
$cat_url  = '-'.str_replace('+','-',urlencode($row['cat_name'])).'-'.$cat_id.$cat_url;
// if you want full path of category in url, put next line in comment
return $cat_url;
if( $row['cat_parent_id'] != 0)
{
return get_category_url($row['cat_parent_id'],$cat_url);
}
else
{
return $cat_url;
}
}
//Mod_bmollet
/**
* Get the image url
* @param int $image_id The id of the image
*/
function get_image_url($image_id)
{
global $site_db;
$sql = "SELECT cat_id,image_name FROM ".IMAGES_TABLE." WHERE image_id = '".$image_id."'";
$result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$row['image_name'] = strtr($row['image_name'], "éèêàëâúóíáABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
// if you want comlpete path to image in url, remove comment from following line
//return get_category_url($row['cat_id']).'-'.str_replace('+','-',urlencode($row['image_name'])).'-'.$image_id;
return '-'.str_replace('+','-',urlencode($row['image_name'])).'-'.$image_id;
}
in the includes/sessions.php

Offline scooze

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #343 on: August 16, 2006, 11:42:11 PM »
so there is still no solution with paging problem?

hot to make a "cat1_2.htm" out of "cat1.htm?page=2"

 :?:

Offline arindra

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: [Mod] Search Engine Friendly URLs aka Short URLs
« Reply #344 on: September 02, 2006, 01:52:18 AM »
i have been long bugged by this ... the seo url works fine on my site but when a user runs a search and it generates result pages with 3-4 pages , it doesnt work on clicking the 2nd page link. it takes them to the advanced Search
However pagination works fine on normal category pages with multiple pages
anyone have any advice ?