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

Pages: 1 2 3 [4] 5 6 7 8 ... 15
46
I do have Sitemap mod but i am not sure if i would be able to change it to get what i want.
All i want to is to show list of categories in left column like the site in my first post.

The following code of V@no did work well.
ok, guys, here is a "ripoff" from ACP -> Edit categories

1) insert into includes/functions.php:
Code: [Select]
function get_category_html_bits($cat_id = 0, $cid = 0, $depth = 1) {
  global $site_db, $html_cat_cache, $cat_cache, $site_sess;

  if (!isset($html_cat_cache[$cid])) {
    return "";
  }
  $category_list = "";
  foreach ($html_cat_cache[$cid] as $key => $category_id) {
    if (check_permission("auth_viewcat", $category_id)) {
      if ($depth > 1) {
        $category_list .= str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;", $depth - 1)."<img src=\"".get_gallery_image("folder_path.gif")."\" alt=\"\">\n";
      }
      $category_list .= "<img src=\"".get_gallery_image("folder.gif")."\" alt=\"\"><b><a href=\"".$site_sess->url(ROOT_PATH."categories.php?cat_id=".$category_id)."\">".$cat_cache[$category_id]['cat_name']."</a></b><br />";
      $category_list .= get_category_html_bits($cat_id, $category_id, $depth + 1);
    }
  }
  unset($html_cat_cache[$cid]);
  return $category_list;
}

Then insert into index.php or any other files where u want the category list to be displayed, above
Code: [Select]
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
this block:
Code: [Select]
$html_cat_cache = $cat_parent_cache;
$site_template->register_vars(array(
  "categories_list" => get_category_html_bits()
));

3) Now, in the "main" template (home.html) that is associates with the file u've insert the code (index.php) use this tag: {categories_list}

P.S. almost forgot, copy admin/images/folder_path.gif into templates/<your template>/images/ folder

 I just want few extra things if possible.

1) Is it possible to show different folder images for main category & subcategory?
2) Is it possible to show "new" with category name which have new images.
3) And finally if possible i would like to show expanded/collapsed categories menu like in ACP of version 1.7.2
(I already have 110 categories and about to add 50 more. So it will be nice to have this effect)


47
I think it started from this topic:
http://www.4homepages.de/forum/index.php?topic=12784.0

Thanks V@no for your reply.
I found more exact match to this from this thread. And its your post.
http://www.4homepages.de/forum/index.php?topic=8682.msg40823#msg40823

I want to change it slightly.
 I am trying my self but i will need your help as well. Should i ask it here or in the other thread ???

48
Hi

See this link http://ecard.lifeshore.com/ecard-cars-39-2006-bentley-azure2-473.htm
Can you tell me what would be the best way to show categores like this ??
And is it possible to show this on a custom template as well.
The site is by maxpaul

Sorry if i am posting this in the wrong forum.

49
The new way of Search "small pop-upsearch box", is not working for me. I tried everything but no luck.
Did anyone else got it working ??

To me, what ever i search it just leads to the advanced search page.

Anyonw out there who could help ?? 

50
I have one small issue, the small pop-upsearch box does not seem to return results
instead it send you to advance search.. where you will then get results
I have entered words and image names that I know exist, but no results are ever shown
Is there an easy fix for this..
I noticed it works perfectly on your demo site, so please help
I'm using version 1.7

I also have the same issue with my V 1.7.1 (Modified)

51
Discussion & Troubleshooting / Re: Adding Categories Menu
« on: July 17, 2006, 08:29:41 PM »

More precisely, I was trying to do something that you can see in this website.
HERE


Anyone ?  :idea:

52
Discussion & Troubleshooting / Re: Adding Categories Menu
« on: July 16, 2006, 11:02:18 PM »
Thanks V@no
The above method works just fine.

I have a little trouble in what I was trying to do before. I tried but I can’t find a solution so I am asking here to get some help.
Let me show you the java script (Basic code) that I was trying to use.
Code: [Select]
<script>
function expcol(id)
{
obj = document.getElementById(id);

if (obj.style.display == 'none')
obj.style.display = 'block';
else
obj.style.display = 'none';

}
</script>
<div onClick="expcol('span1')" style="cursor:hand;">Main Category</div>
<span id="span1" style="display:none;">
Subcategory 1<br>
Subcategory 2<br>
Subcategory 3
</span>
</span>


When someone clicks on main category, the menu expands itself and shows all the sub-categories in it.
The problem is, since category images are displayed using categories.html, the above code doesn’t show subcategories.

More precisely, I was trying to do something that you can see in this website.
HERE

Any idea if this can be done ??

53
Discussion & Troubleshooting / Adding Categories Menu
« on: July 07, 2006, 11:08:17 PM »
For my site BestofWallpapers.Com, I am working on a new way of showing categories & subcategories. (Using some JavaScript)
(Like a right hand menu for Categories)

I don’t know how the current system works but my changes are working fine. Although I have to edit the file manually every time I add a new category. (I don’t how could I make it work the usual way)

Anyway, I was wondering that instead of adding this long code to all html files would it be possible to make a new html file say catmenu.html and then include it in other templates by using some tag like {catmenu}

Is it possible?  :?:

54
Discussion & Troubleshooting / Re: DB Error -- Urgent Help Please
« on: July 06, 2006, 11:13:51 PM »
Ok.
I Quick fix from my host.
Thank God, the site is back. :)

Sorry for the trouble. I didn’t know that this issue is related to the host not the 4images & I was so worried that I started this topic.
But still I would to know the cause if someone could through some light on this issue

55
Discussion & Troubleshooting / Re: DB Error -- Urgent Help Please
« on: July 06, 2006, 10:59:48 PM »
@ ivan

Thanks for the reply.
May i know the cause of this error ??
My other site on the same account is working just fine. I am experiencing problem only with 4Images.
I am also asking my Host about it. (Chatting with them right now)

56
Discussion & Troubleshooting / DB Error -- Urgent Help Please
« on: July 06, 2006, 10:18:41 PM »
I don’t know what happen. Everything was working fine yesterday & I haven’t changed a single thing since a long time.
But today when I opened my site I was getting the following  DB error message.
Can’t login as admin. Nothing :(

Code: [Select]
DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
User 'site_wallpapers' has exceeded the 'max_questions' resource (current value: 50000)

Please tell me what to do.  :cry:

57
Chit Chat / Re: Make your Gallery go Crazy
« on: July 04, 2006, 10:55:15 PM »
Muahahahahah!!!!
great fund! nice one

As more time you hit enter, as faster they start jumping around...lol

P.S. dont kill your browser :D

Thanks for the appreciation.  :)
Is there any browser with which it doesn’t work??
I only checked it with FF, Opera & IE.

58
Its been a long time I have added this mod. Few days back, I found out that the total number of votes shown by this mod are different than the no. of votes I currently have.

If you see Top Wallpapers (top.php) you will clearly see that the number of votes are more than 28 shown by this mod.
BestofWallpapers.Com

Its not a big problem but I will like to know what is the problem?
At least tell me where to start digging ? 


Anyone ?? Should I just ignore it ??

59
Chit Chat / Make your Gallery go Crazy
« on: July 03, 2006, 12:58:33 AM »
Open your 4images gallery.
Just copy paste the following JavaScript code in your web browser’s address bar and hit enter. See what happens with your site.
I am sure you will be amazed.

Code: [Select]
javascript:R=-1;DI=document.links;DIL=DI.length;function A(a,b,c){return Math.sin(R/350*6.28*b+a)*c+c}function B(a){DIS=DI.item(a).style;DIS.position='absolute';DIS.left=A(5,100,500);DIS.top=A(5.6,60,150)}setInterval('R++;B(R%DIL)',15);void(0)

60
Its been a long time I have added this mod. Few days back, I found out that the total number of votes shown by this mod are different than the no. of votes I currently have.

If you see Top Wallpapers (top.php) you will clearly see that the number of votes are more than 28 shown by this mod.
BestofWallpapers.Com

Its not a big problem but I will like to know what is the problem?
At least tell me where to start digging ? 

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