Author Topic: [MOD] Sitemap v1.0  (Read 170299 times)

0 Members and 1 Guest are viewing this topic.

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
[MOD] Sitemap v1.0
« on: August 14, 2005, 06:38:46 PM »
----------- [ Description ] ---------------

This mod will allow you to show list of all categories on one page aka sitemap.


This mod was started in [REQ] List links for all Categories and Subcategories in one page. topic.


----------- [ Changed/new files ] ---------------

Changed files

includes/page_header.php
lang/
<your language> /main.php
templates/
<your template> /user_logininfo.html
templates/
<your template> /user_loginform.html
templates/
<your template> /style.css


New files

sitemap.php
templates/
<your template> /sitemap.html
templates/
<your template> /images/folder1.gif
templates/
<your template> /images/folder2.gif
templates/
<your template> /images/folder3.gif
templates/
<your template> /images/folder4.gif
templates/
<your template> /images/folder_path.gif


----------- [ Installation ] ---------------

Step 1

Download attached package below.
Unzip it and upload files to your 4images site, restoring the following file-tree:
sitemap.php
templates/
<your template> /sitemap.html
templates/
<your template> /images/folder1.gif
templates/
<your template> /images/folder2.gif
templates/
<your template> /images/folder3.gif
templates/
<your template> /images/folder4.gif
templates/
<your template> /images/folder_path.gif


Step 2
Open includes/page_header.php
Find:
Code: [Select]
  "media_url" => MEDIA_PATH,Insert below:
Code: [Select]
  "url_sitemap" => $site_sess->url(ROOT_PATH."sitemap.php"),
  "lang_sitemap" => $lang['sitemap'],


Step 3
Open lang/<your language> /main.php
At the end, just above closing ?> insert:
Code: [Select]
/*
  MOD SITEMAP
  START INSERT
*/
$lang['sitemap'] = "Sitemap";
$lang['sitemap_legend'] = "Legend";
$lang['sitemap_viewimages_yes'] = "Allowed view images";
$lang['sitemap_viewimages_no'] = "Not allowed view images";
$lang['sitemap_viewimages_new_yes'] = "With new images and you are allowed view images";
$lang['sitemap_viewimages_new_no'] = "With new images but you are not allowed view images";
$lang['sitemap_cat_info'] = "<span class=\"sitemapinfo\">{lang_images}{lang_new_images}{lang_hits}{lang_description}</span>";
$lang['sitemap_images'] = "Images: {images}";
$lang['sitemap_new_images'] = " (New: {new_images})";
$lang['sitemap_hits'] = " Hits: {hits}";
$lang['sitemap_description'] = " Description: {description}";
$lang['sitemap_hidden'] = "&lt; hidden &gt;";
/*
  MOD SITEMAP
  END INSERT
*/


Step 4
Open
templates/<your template> /user_logininfo.html
and
templates/<your template> /user_loginform.html
In the place where you want the link to sitemap be showed add the following html code:
Code: [Select]
&raquo; <a href="{url_sitemap}">{lang_sitemap}</a>

Step 5
Open templates/<your template> /style.css
Add:
Code: [Select]
/*
 MOD SITEMAP
 START INSERT
*/
.sitemapinfo
{
  font-size: 9px;
padding: 2px 2px 2px 2px;
margin: 2px 2px 2px 2px;
color: #8794A7;
}
.sitemaprow1
{
  background-color: #e1e1e1;
  color: #004c75;
}

.sitemaprow2
{
  background-color: #efefef;
  color: #004c75;
}
/*
 MOD SITEMAP
 END INSERT
*/
« Last Edit: December 29, 2008, 12:20:14 AM by V@no »
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 Vincent

  • 4images Moderator
  • Addicted member
  • *****
  • Posts: 1.195
    • View Profile
    • www.foto-kocher.com
Re: [MOD] Sitemap v1.0
« Reply #1 on: August 14, 2005, 07:33:53 PM »
yes Mawenzi have done a nice MOD (it is the same i belive)  :wink:

http://www.foto-kocher.com/sitemap.php
and works well

sincerly
vincent
Beati pauperi spiritus

4images 1.7 // My Installed Mods


Offline ID25

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #2 on: August 14, 2005, 09:32:26 PM »
Simple and clear MOD,
thank's for V@no

Maybe i can this do with "register.html" template?

what i must change.
  "categories" => sitemap_bits(),
to
  "content" => sitemap_bits(),

or what? :)
NO NEED LEGEND in left side

Offline ch€ri{Bi}˛

  • Sr. Member
  • ****
  • Posts: 315
  • A PRoBLeM wIthOUt SoLuTioN Is NoT rEAllY a PRoBLeM
    • View Profile
    • Pat's Gallery
Re: [MOD] Sitemap v1.0
« Reply #3 on: August 15, 2005, 03:14:44 PM »
@V@no : thanks a lot for this MOD.
But there is something that I do not understand (maybe you can answer...)

 :?: As guest, why can I see hidden categories in sitemap  8O  while during the normal consultation of the site, the hidden categories are invisible?
How can i modify this?

[EDITED]
I found the solution : edit in sitemap.php line 49
Code: [Select]
  $hidden = true; //true or false. when set to true, all categories will be showed, the not accessible categories will be showed as "<hidden>";
and change it to false  :wink:

best regards.
ch€ri{Bi}˛


Offline Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: [MOD] Sitemap v1.0
« Reply #4 on: August 15, 2005, 03:35:46 PM »
Hi V@no,
I have 11 new pictures in one category, but it shows only 1 new picture in sitemap.

http://www.gpaed.de/bildergalerie/sitemap.php

Seems like the script can not count more than 10 in the category "Makroaufnahmen"  :wink:

Do you have a solution
Anyway its a very nice mod.

Matthias

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] Sitemap v1.0
« Reply #5 on: August 16, 2005, 12:11:41 AM »
:?: As guest, why can I see hidden categories in sitemap  8O  while during the normal consultation of the site, the hidden categories are invisible?
How can i modify this?

[EDITED]
I found the solution : edit in sitemap.php line 49
Code: [Select]
  $hidden = true; //true or false. when set to true, all categories will be showed, the not accessible categories will be showed as "<hidden>";
and change it to false  :wink:

best regards.
yes, that's the one ;) I've updated the file, now its "false" by default :)

Hi V@no,
I have 11 new pictures in one category, but it shows only 1 new picture in sitemap.

http://www.gpaed.de/bildergalerie/sitemap.php

Seems like the script can not count more than 10 in the category "Makroaufnahmen"  :wink:

Do you have a solution
Anyway its a very nice mod.

Matthias
fixed it. redownload the package and replace sitemap.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 Matthias70

  • Full Member
  • ***
  • Posts: 199
    • View Profile
    • Bildergalerie
Re: [MOD] Sitemap v1.0
« Reply #6 on: August 16, 2005, 12:19:21 AM »
Works fine now
thanks a lot
Matthias

Offline kief24

  • Sr. Member
  • ****
  • Posts: 267
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #7 on: August 21, 2005, 04:24:19 PM »

Offline Bear

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #8 on: August 22, 2005, 08:25:34 PM »
nice mod works well  8)
thank you

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: [MOD] Sitemap v1.0
« Reply #9 on: August 23, 2005, 05:18:32 PM »
It must be out there, but I have been trying to remove description form the map. :(
I have been looking for something like %print $cat_name,& $cat_imagenumber,& $cat_hits , & $cat_description to just simply remove $cat_description, but couldn't find it.. And I don't want to mess sitemap.php.


--edit--

of course, remove "cat_info"

Thanks for this great simple and clean yet useful mod.

Please Vote for my site: Here

Offline Xyu BAM

  • Full Member
  • ***
  • Posts: 145
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #10 on: August 24, 2005, 05:21:44 AM »
it seems that all info is constructed in this line in main.php:
Code: [Select]
$lang['sitemap_cat_info'] = "<span class=\"sitemapinfo\">{lang_images}{lang_new_images}{lang_hits}{lang_description}</span>";in your case simply remove {lang_description}

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: [MOD] Sitemap v1.0
« Reply #11 on: August 24, 2005, 06:08:59 AM »
You're right.. I removed the whole thing, looks pretty clean this way, but _images is also good to have to show how many is under the cat.

Please Vote for my site: Here

Offline arindra

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #12 on: August 31, 2005, 12:07:22 AM »
hi V@no
this sitemap mod works pretty nicely in a way to show the latest images in any category ... which truly serves a good purpose for me .

however , befre the catastrophe here , there was another sitemap mod which actually made a sitemap of each and every image page , not just the main categories . how can we get / do that ?

Offline eshpro

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • gallery.eshpro.com
Re: [MOD] Sitemap v1.0
« Reply #13 on: September 19, 2005, 12:50:40 AM »

Offline Maweryk

  • Sr. Member
  • ****
  • Posts: 253
    • View Profile
Re: [MOD] Sitemap v1.0
« Reply #14 on: September 20, 2005, 02:09:42 AM »
Works great!

Thanks v@no!

Cheers,

Markus