Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - om6acw

Pages: 1 2 [3] 4 5 6 7 ... 12
31
Mods & Plugins (Requests & Discussions) / Re: [REQ] Better image SEO
« on: January 02, 2009, 06:40:39 PM »
so any ideas???

32
urlencode() function would convert anything that is not safe for links to link-safe format, so if () are not converted, then they are safe. Do you have problems with such links?


(warning: foul language)

I don't have any problem with this kind of links but I was asking because I wasn't sure if this characters are safe or not. Thanks for you help and time.

33
Thanks V@no this help me a lot!!!! I have actually one more question, some of my photo names are in this format
Quote
Ovis Canadensis (Bighorn sheep)
in my links they are shown like 
Quote
ovis_canadensis_(bighorn_sheep)
what kind of characters are safe for using in links because I think I have to change this () to something else. Maybe for _ but I am not sure if you can have two of them in line like this __

34
So I did some changes in google.php and right now I have "almost" properly formatted links in sitemap.xml
but still I cant figure out how to replace empty space in names with "-"
Right now my links in sitemap looks like this:

Quote
http://www.myanimalsworld.com/img-wedge pond-17.htm

but working link should be like this with missing - between words

Quote
http://www.myanimalsworld.com/img-wedge-pond-17.htm

here is my google.php

Code: [Select]
<?
# Create Google Sitemap for 4images
# Created by Mai Minh (minh@maingo.com http://www.vna2z.com)
# Modified by Oliver van der Werf (info@flash-webdesign.de http://www.flash-webdesign.de)
# Date: 28/11/2006 | 02.01.2007
# You can send ping to Google with this request: http://www.google.com/webmasters/sitemaps/ping?sitemap=URL_TO_YOUR_SITEMAP
#---------------------------------

require("config.php");

$link=mysql_connect("$db_host","$db_user","$db_password");
mysql_select_db("$db_name") or die ("Cannot connect database!");

# 4images top page (with trailing slash)
$gallery_url = 'http://www.myanimalsworld.com/';

# Priotity
//select between 0.0 and 1.0
//0.0 identifies the lowest priority page(s) on your website
//1.0 identifies the highest priority page(s) on your website
$prio_img = 0.5;
$prio_cat = 0.8;
$prio_profile = 0.3;

# Frequency
//"always", "hourly", "daily", "weekly", "monthly", "yearly" or "never"
$freq_img = 'daily';
$freq_cat = 'daily';
$freq_profile = 'daily';

# Use Short URLs
$shortURL = 1; // 0 or 1

# Print XML header
xml_head();

# Print URLs
$categories = mysql_query('SELECT cat_id, cat_name FROM ' . $table_prefix . 'categories WHERE auth_viewimage = 0');
while ($category = mysql_fetch_array($categories))
{
$catid = $category['cat_id'];
$cat_name = $category['cat_name'] = strtr($category['cat_name'], "ABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
if ($shortURL == 1) {
$cat_url = $gallery_url.'cat-'.$cat_name.'-'.$catid.'.htm';
}else {
$cat_url = $gallery_url.'categories.php?cat_id='.$catid;
}

print_xml($cat_url,$prio_cat,'',$freq_cat);
}

$images = mysql_query('SELECT image_id, image_name, image_active, image_date FROM ' . $table_prefix . 'images');
while ($image = mysql_fetch_array($images))
{
if ($image['image_active'] == 1) {
$imgid = $image['image_id'];
$imgna = $image['image_name'] = strtr($image['image_name'], "ABCDEFGHIJKLMNOPQRSTUVWXYZ","eeeaeauoiaabcdefghijklmnopqrstuvwxyz");
$date = $image['image_date'];
$date = date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
if ($shortURL == 1) {
$img_url = $gallery_url.'img-'.$imgna.'-'.$imgid.'.htm';
}else{
$img_url = $gallery_url.'details.php?image_id='.$imgid;
}
print_xml($img_url,$prio_img,$date,$freq_img);
}
}

$profiles = mysql_query('SELECT user_id, user_lastaction FROM ' . $table_prefix . 'users WHERE user_id >= "1"');
while ($profile = mysql_fetch_array($profiles))
{

$profileid = $profile['user_id'];
$date = $profile['user_lastaction'];
$date = date("Y-m-d",$date)."T".date("H:i:s",$date)."+00:00";
$profile_url = $gallery_url.'member.php?action=showprofile&amp;user_id='.$profileid;
print_xml($profile_url,$prio_profile,$date,$freq_profile);
}

# Print XML footer
xml_foot();

function xml_head() {
$freq = 'daily';
$priority = '1.0';
$mod = date("Y-m-d")."T".date("H:i:s")."+00:00";
echo "<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns=\"http://www.google.com/schemas/sitemap/0.84\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xsi:schemaLocation=\"http://www.google.com/schemas/sitemap/0.84 http://www.google.com/schemas/sitemap/0.84/sitemap.xsd\">";
}

#-----------------------------------------------
# xml_foot
#-----------------------------------------------
function xml_foot() {
echo "
</urlset>";
}

#-----------------------------------------------
# print_xml
#-----------------------------------------------
function print_xml($url,$priority,$lastmod,$changefreq) {
$temp = "<url>
<loc>$url</loc>";
$temp .= "  <priority>$priority</priority>";
if ($lastmod != '') {
$temp .="  <lastmod>$lastmod</lastmod>";
}
$temp .= "  <changefreq>$changefreq</changefreq>
</url>";
echo $temp;
}
?>

35
Mods & Plugins (Requests & Discussions) / [REQ] Better image SEO
« on: January 01, 2009, 05:18:10 AM »
It's here some way how to make images in my gallery more visible for search engines like google, yahoo etc.

I try it today, image search from google, yahoo and any result what come back doesn't show up any from my photographs.
When I do search in google web with those three key words "Castle Mountain MyAnimalsWorld" I get couple of links pointing
to same name photo on my website , when I do search in google image search nothing is matching their records. That's mean
images are not properly indexed by search engines or they are no visible for them. 

So here is the question how to make images in 4image gallery more visible for search engines???

36
add in your .htaccess:
Code: [Select]
RewriteRule ^somepage.html$  index.php?template=somepage [NC,L]

I think if he has installed mod SEO friendly url he should have line like this
Code: [Select]
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}already in his .htaccess file but maybe I'm wrong.

37
Is it possible to change the URL of additional pages I created. The URL right now is www.XXXX.com/index.php?template=somepage
Can I change that URL design to something more seo friendly? i already installed url mod, so thate categorie are shown like /catXXX.htm

Any ideas?

Thank you in advance.

Regards
Florian

just try call your additional page like this www.your_domain.com/somepage.html

38
Chit Chat / Re: Site hacked ;(
« on: December 25, 2008, 01:58:43 AM »
Hi V@no, thanks. That E icon its going to be used for ecard sending. but right now I'm working on that frame when GPS coordinates are not provided, but right now i lost my self in changing too much stuff in same time ;)

39
Chit Chat / Site hacked ;(
« on: December 24, 2008, 08:08:09 PM »
One month ago my site was hacked and I lost everything on it. They deleted all my files on server included backups and database (dumb I forgot downloaded last one to my PC) so I have to start from scratch.

Now when is partially done I want to shared with you guys and girls and I want to hear back from you how you like it.
http://www.myanimalsworld.com
Thanks for this great engine 4images.
Thanks a lot.

40
Chit Chat / Re: 4homepages website Top 10 Rated
« on: December 02, 2008, 08:00:37 PM »
Somebody knows who is on charge of 4homepages top sites page? http://www.4homepages.de/resources/Ratings/ Because I checked every date the ranking because I used to have two sites there, but now one of them has been deleted www.ticas.cr and the other one has been underrated www.ticas.co.cr (I always keep the 4homepages copyright information and everything), and non existing sites in that list have been overrated with more votes and ranking irregularly. this is really unfair and irregular, who can help me?

Thanks.


I think you little bit misunderstand what top10 is mean. Keeping all copyright information does n have anything to do with that. Today somebody like your site tomorrow not and its same with rating, personally I dont like your site and my rating would be 1 and really I dont see any reason why your site "must" be in TOP10. You dindt change anything on it and this top is for gallery not for photos what you upload in it.

41
Chit Chat / Re: 4images and Google Adsense
« on: November 22, 2008, 08:21:04 PM »
First of all... thanks of your help! I apreciate that :)

Ok... I tried with default template... nothing...

I removed every style (now I placed again) and the same...

So... any other idea?

Like V@no I have a wild guess. I think it has something to do with google indexation or google robots. In new videos adsense doesn't appear too... but I'm not an expert of google and how it works...
I can ask google group, but I prefer to leave that into the last option.

This problem is google adsense related, longer time ago I had this problem to, what I found was bad setting in my google adsense account, I changed, generated new code and now is working. Also some older stuf are not supported anymore like adsense for referrals etc.

42
Mods & Plugins (Releases & Support) / Re: [MOD] Language select
« on: October 26, 2008, 05:36:39 PM »
I'm sorry, what icon? I'm not familiar with "Buddy Mod", and don't know how it works...A screenshot of how it should look like and how it actually looks could possibly help.

Hello V@no and thanks for your support .
The Buddy mod is here http://www.4homepages.de/forum/index.php?topic=19755.0.
Also please see atached 2 screenshots from english and romanian language

You have to upload your romanian button in to your_template/images_romanian folder if you don't have one you should create him.

43
do you have your aboutus.html in your template folder???

44
This is not working for you ???

Code: [Select]
RewriteRule ^([a-zA-Z0-9_-]+)\.html$ index.php?template=$1&%{QUERY_STRING}
works for me ;)
that would only work if you place it at the end of .htaccess

@Phisker B:
Please don't use [php][/php] tags for non-PHP code, it doesn't display correctly:
Code: [Select]
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}same code but displays different (no backslashes):
RewriteRule ^lightbox\.([0-9]+)\.htmlightbox.php?page=$1&%{QUERY_STRING}

That's right V@no I forgot to mention that ;)

45
Hey,

PHP individual files so call to leave is so easy, but somehow this does not work with my code.

Really, I do not understand how you think! Show times but ask the entire code of the piece.

Because I check what is absolutely not, sorry!

If I understand you right, you want to see your about_us when you call this file from your menu like about_us.htm
Just delete this from session.php

Code: [Select]
      elseif (strstr($url, 'index.php?template=about_us')) {
        if (strstr($url, 'page=')) {
          preg_match('#page=([0-9]+)&?#', $url, $matches);
          if (isset($matches[1])) {
            $split = explode('?', $url);
            $url = $split[0];
            $query = @$split[1];
            $url   = str_replace('index.php?template=about_us', 'aboutus.'.$matches[1].'.htm', $url);
            $query = str_replace('page='.$matches[1].'&', '', $query);
            $query = str_replace('&page='.$matches[1], '', $query);
            $query = str_replace('page='.$matches[1], '', $query);
            if (!empty($query)) {
                $url .= '?' . $query;
            }
          }
        }
        else {
          $url = str_replace('index.php?template=about_us', 'aboutus.htm', $url);
        }
      }

and this from .htaccess

Code: [Select]
RewriteRule ^aboutus.htm$ index.php?template=about_us?%{QUERY_STRING}
live this line in at the end of .htaccess

Code: [Select]
RewriteRule ^([a-zA-Z0-9_-]+).html$ index.php?template=$1&%{QUERY_STRING}
and change your link in menu template to about_us file to this

Code: [Select]
href="./about_us.html"

Pages: 1 2 [3] 4 5 6 7 ... 12