4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)
[MOD] Sitemap v1.0
V@no:
----------- [ 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: --- "media_url" => MEDIA_PATH,
--- End code ---
Insert below:
--- Code: --- "url_sitemap" => $site_sess->url(ROOT_PATH."sitemap.php"),
"lang_sitemap" => $lang['sitemap'],
--- End code ---
Step 3
Open lang/<your language> /main.php
At the end, just above closing ?> insert:
--- Code: ---/*
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'] = "< hidden >";
/*
MOD SITEMAP
END INSERT
*/
--- End code ---
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: ---» <a href="{url_sitemap}">{lang_sitemap}</a>
--- End code ---
Step 5
Open templates/<your template> /style.css
Add:
--- Code: ---/*
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
*/
--- End code ---
Vincent:
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
ID25:
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
ch€ri{Bi}˛:
@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: --- $hidden = true; //true or false. when set to true, all categories will be showed, the not accessible categories will be showed as "<hidden>";
--- End code ---
and change it to false :wink:
best regards.
Matthias70:
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
Navigation
[0] Message Index
[#] Next page
Go to full version