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 - didoman

Pages: [1] 2 3
1
I am using om6acw version of the script with the tweak done by Vano to fix up the brackets and spaces. Works great. Thanks.\

Two Questions:

1.  Anyone know how to include adhoc pages as well ==  Example to add pages like http://example.com/index.php?template=about

2. Anyone have a clever way of including the video sitemap as mentioned in google http://support.google.com/webmasters/bin/answer.py?hl=en&answer=80472

I am looking at including something like this (See the bold highlights)

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
   <url>
     <loc>http://www.example.com/videos/some_video_landing_page.html</loc>
     <video:video>
       <video:thumbnail_loc> This will be the image Thumbnail </video:thumbnail_loc>
       <video:title> This will be the image name </video:title>
       <video:description> Trailer to the new film "image name"  </video:description>
       <video:player_loc allow_embed="yes" autoplay="ap=1"> http://www.youtube.com/v/ywAGVfuFzxA.swf  </video:player_loc>
       <video:expiration_date>2009-11-05T19:20:30+08:00</video:expiration_date>
       <video:publication_date>2007-11-05T19:20:30+08:00</video:publication_date>
       <video:family_friendly>yes</video:family_friendly>   
       <video:restriction relationship="allow">IE GB US CA</video:restriction>
     </video:video>
   </url>
</urlset>

2
this is the easy answer

./data/thumbnails/{cat_id}/{thumbnail_file_name}

3
do you know how long i have been searching for this...

./data/thumbnails/{cat_id}/{thumbnail_file_name}

4
just did a couple of hours searching and found this is just a stupid indexing method by Google.
a lot of people still have old crawl index errors too. some up to months of still having errors even though the links have been fixed.
you can remove them via google webmaster central in the remove link section.

5
Programming / Re: How to use Facebook Open Graph Protocol
« on: May 02, 2011, 03:02:49 PM »
I found an easier way. Modify your details.php file and add the tag "full_url" see below instuctions.
Now you can use the {full_url} insert tag for your header meta stuff.


search in your details.php:

if ($image_allow_comments == 1) {
  
$site_template->register_vars(array(

and replace:

if ($image_allow_comments == 1) {
  
$site_template->register_vars(array(
      
"full_url" => $script_url."/details.php?".URL_IMAGE_ID."=".$image_id,


6
I posted before to change the three letters "img" in the URL to something else.

Vano suggested to change a few lines in step 4 and it worked fine.

eg.
str_replace('details.php', 'img was replaced with str_replace('details.php', 'movie
And I also updated my .htaccess file as well to reflect the new word "movie"

This worked great and now all my URL's are working fine eg. www.example.com/movie-star-wars-333.htm

My problem is that in my traffic logs I am continually seeing "File Not Found" error for the old URL eg. www.example.com/img-star-wars-333.htm

Is there something else I should have changed.

I had the "img" url for about 1 month before I changed it, so I think most of the errors I am getting are coming from googlebot.

why is google still think I have that URL structure. I changed it back in October last year

7
anyone know a way?

8
I would like to embed Dailymotion videos using the media template method.

I have created a new media templete and called it /templates/default/media/dmt.html
I have put in the embed code that will play the dailymotion video

<!-- Template file for DailyMotion -->
<object width="425" height="355" />
<param name="movie" value="{media_src}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed type="application/x-shockwave-flash" src="{media_src}" width="425" height="355" allowfullscreen="true" allowscriptaccess="always">
</embed>
</object>

My problem is when I add the "media_src" when adding a new image eg. http://www.dailymotion.com/swf/video/xhwuvu.dmt
It does not work, because Dailymotion does not need the file extension. Example .dmt
It only works if the file is like http://www.dailymotion.com/swf/video/xhwuvu --- without the .dmt file extension at the end.

is there a way to add new media that doesn't need a file extension?

9
Chit Chat / Re: Stop Spammers
« on: November 03, 2010, 04:17:36 PM »
I have captcha on and I still get some spam in my comments.

If you get spam in your comments, one possible way that I am trying is to put the name of the URL that the spammer is posting
in my badword list. Spammers are trying to build up their Google search rankings with their URL on thousands of sites, I'm thinking
if the URL doesn't work, then the spammers or spambots will leave you alone.

Does anyone know how to include badwords to change words in the 'name' and 'website' fields of the comments section?
At the moment it only works in the 'comments' section

10
Excellent, changing this and also in .htaccess works great.
Once again Vano thank you for your brilliant help. Your help over the years has been an inspiration to a lot people.  :lol:

I am now trying to figure out a way for search to also show the image name. Little bit more tricky.
eg. example.com/movie222.search.htm  -->  example.com/movie222.image-name.htm

That is to include the name of the image in the search URL.
Not sure if it helps with Google, but you never know?

Any hints you can throw my way will be appreciated.

11
Hi,
Sorry to pest, but anybody know a quick answer to my last question.  :oops:

12
I am using the .htaccess from the first page and Vano's optimized session.php
Everything works fine. Thanks.

I have been through the thread (twice) and see that a few people want a cosmetic change to the cat and img that precede the URL.
ie. Just cosmetically changing the pointers "img" and "cat" to another word

Example I would like to change the name of "img" to "movie"
http://example.com/movie-example-1132.htm

I believe Vano mentioned ages ago that those 3 letters are just cosmetic and can be changed but I can't find out how to do it. Nobody mentions how in any thread.

I assumed it would just be a simple matter of changing the line in .htaccess, --- but this doesn't work
eg. RewriteRule ^movie-(.*)-([0-9]+)\.htm$ details.php?image_id=$2&%{QUERY_STRING}

Is there something I have to change elsewhere in sessions.php?

Just wondering if anybody could help out with this one. Thanks

Reminder  :lol:



13
I figured it out.

Quoting from Vano on other posts, You cannot use $user_table_fields array for custom fields or get_user_table_field() functions for additional fields.
So did some tweaking and added the following...

First you need to get the database entry, that you filled out in your profile... eg MSN account

In details.php go to the section for Show Comments and find the line that begins with     $sql = "SELECT

Now add this to the very end of the line   , u.user_msn


Second thing you need to do is to find the line that begins with   $comment_user_msn

And replace it with this

$comment_user_msn = (isset($comment_row[$i]['user_msn'])) ? format_text($comment_row[$i]['user_msn']) : "";

Or if you want it to show up as a url with http:// in front of the field then use format_url eg.
$comment_user_msn = (isset($comment_row[$i]['user_msn'])) ? format_url($comment_row[$i]['user_msn']) : "";


All I did here was add the sql bit to retrieve the database field and used the format $comment_row[$i]['user_msn' instead


Then you can add the {comment_user_msn_button} in the comments_bit.html or where ever you want, and it will reflect the database field your users fill in on their profile and show up in their comments.
Oh yes you also have to make a little new 16x16.gif file and upload it to where ever you keep your image files.... Look at the ICQ example in your code as a guide...

14
I left step 6 out as Vano suggested.

I see step 7 updated the details.php so an icon shows up in your comments eg. homepage etc...

Not sure what to put in comments_bit.html

I noticed it contains {comment_user_homepage_button} {comment_user_icq_button} etc etc .... , so I assumed it would go something like {comment_user_msn_button}

but it doesn't work.

What am i doing wrong.

15
It's been a couple of years now of this mod, and I just want to know is it worth installing.

Does this have any benefit with search engines SEO etc... Or is how 4images originally written just as good.

there are so many changes with this MOD, I'm a bit scared and skeptical on trying to fix something that isn't broken.. If you know what I mean :mrgreen:

Pages: [1] 2 3