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 - † manurom

Pages: 1 ... 6 7 8 9 [10] 11 12 13
136
Hello;
what went wrong when you moved your databse? Who knows?

Have you tested this topic by Nicky: Lost admin password - what to do?, in the FAQ?

Hope it will help you.

137
Mods & Plugins (Requests & Discussions) / Re: Random image size?
« on: May 12, 2008, 02:53:50 PM »
Hello;
you have to modify two files from your template, random_image.html and random_cat_image.html.

Change:
Code: [Select]
{thumbnail}
by:
Code: [Select]
<img src="data/thumbnails/{cat_id}/{thumbnail_file_name}" width="150" />
Tested and working.

138
Hello;
viewing few post of yours, it seems that you have a problem with templates/default/media folder.
Please find in attachment my media and icons folders.

But, please, don't shout, we're not deaf. :mrgreen:

139
Hello, all;
from http://www.netzgesta.de/, there are more cosmetics changes you can apply to your thumbnails.

You only have to download the scripts, free for use in non-commercial or private websites. See "licence.txt" attached, and be fair and respect it.

An exemple of you can do:

Example: to do the Bevel Effect, download bevel.js here: http://www.netzgesta.de/bevel/.
Upload bevel.js to your template directory.

Open your header.html file, like said above, and insert before </head>:
Code: [Select]
<script type="text/javascript" src="{template_url}/bevel.js"></script>
As also said above, open the file includes/functions.php and change at the line #464:
Code: [Select]
$thumb = "<img src=\"".$file_src."\" border=\"0\"".$width_height." alt=\"".format_text($image_name, 2)."\" />";
to:
Code: [Select]
$thumb = "<img src=\"".$file_src."\" class=\"bevel noshade\" border=\"0\"".$width_height." alt=\"".format_text($image_name, 2)."\" />";
and line #470:
Code: [Select]
$thumb = "<img src=\"".$file_src."\" border=\"".$config['image_border']."\"".$width_height." alt=\"".format_text($image_name, 2)."\" />";
to:
Code: [Select]
$thumb = "<img src=\"".$file_src."\" class=\"bevel noshade\" border=\"".$config['image_border']."\"".$width_height." alt=\"".format_text($image_name, 2)."\" />";
That's all. Look at http://www.netzgesta.de/bevel/, many variations are there described.


Following that example, you can apply one of the other scripts:

But please, must of all, respect their work, keep their copyrights, and whynot, send them a feedback if you enjoy their work! :P

Please read the licence attached.

Enjoy!

140
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 10, 2008, 11:15:50 AM »
Hi;
there was a confusion with your "terms" and "therms". Forget about it. The fault is ours as we didn't explain clearly enough. As I said before, explaining is more difficult than understanding.

In fact, to resume, each time you create a "core" PHP file, like "contact.php" or "terms.php", you will have to declare it's session URL in "includes/page_header.php" like in my previous post, so you can use {url_contact} or {url_terms} in your templates, keeping the user's session alive.

If you create only custom HTML template files, like "FAQ.html", simply use links like {url_home}?template=FAQ.

To use an ordinary e-mail contact link, use this:
Code: [Select]
<a href="mailto:my_address@my_isp.com?subject=My Site Feedback">Contact Us</a>
Replace "my_address@my_isp.com" by your own email address.
Replace "My Site Feedback" by the subject you want to be displayed in the mails you will receive.

141
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 10, 2008, 10:05:32 AM »
Hello, nicky9;
sorry if we made you confused.

Let's make it step by step, according to KurtW's advice.

1_ LEFT MENU
____You got there 3 core and one custom links.
This custom link is "FAQ", and there you can do a custom template page by reading this FAQ: How to add a new, custom template page.
Once having created your own template page called "FAQ.html" (caution, case sensitive), your template file "my_menu.html" should be like this:
Code: [Select]
<div align="center">
<table  width="100" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
  <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="{url_home}" style="text-decoration: none"><strong>HOME</strong></a></td>
 </tr>
 <tr>
 <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="{url_home}?template=FAQ" style="text-decoration: none"><strong>FAQ</strong></a></td>
 </tr>
 <tr>
 <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="{url_top_images}" style="text-decoration: none"><strong>TOP IMAGES</strong></a></td>
 </tr>
 <tr>
 <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="{url_new_images}" style="text-decoration: none"><strong>NEW IMAGES</strong></a></td>
 </tr>
 </table>
</div>
<br>

2_ IF LOGGED
____You want to have "MY ALBUM", in user_logininfo block, instead of "Lightbox".
Go to the lang/your_language/ (english, I suppose) directory, and edit the file "main.php"

Find:
Code: [Select]
//-----------------------------------------------------
//--- Lightbox ----------------------------------------
//-----------------------------------------------------
$lang['lightbox_no_images'] = "No images stored in your lightbox.";
$lang['lightbox_add_success'] = "Image added.";
$lang['lightbox_add_error'] = "Error adding image!";
$lang['lightbox_remove_success'] = "Image deleted from lightbox.";
$lang['lightbox_remove_error'] = "Error deleting image!";
$lang['lightbox_register'] = "In order to use the lightbox, you have to register.<br />&raquo; <a href=\"{url_register}\">Register now</a>";
$lang['lightbox_delete_success'] = "Lightbox deleted.";
$lang['lightbox_delete_error'] = "Error deleting lightbox!";
$lang['delete_lightbox'] = "Delete lightbox";
$lang['lighbox_lastaction'] = "Lightbox last updated:";
$lang['delete_lightbox_confirm'] = "Do you really want to delete the lightbox?";

//-----------------------------------------------------
//--- Misc --------------------------------------------
//-----------------------------------------------------
$lang['new'] = "new"; // Marks categories and images as "NEW"
$lang['home'] = "Home";
$lang['categories'] = "Categories";
$lang['sub_categories'] = "Subcategories";
$lang['lightbox'] = "Lightbox";

Change it to:
Code: [Select]
//-----------------------------------------------------
//--- Lightbox ----------------------------------------
//-----------------------------------------------------
$lang['lightbox_no_images'] = "No images stored in your album.";
$lang['lightbox_add_success'] = "Image added.";
$lang['lightbox_add_error'] = "Error adding image!";
$lang['lightbox_remove_success'] = "Image deleted from album.";
$lang['lightbox_remove_error'] = "Error deleting image!";
$lang['lightbox_register'] = "In order to use the album, you have to register.<br />&raquo; <a href=\"{url_register}\">Register now</a>";
$lang['lightbox_delete_success'] = "Album deleted.";
$lang['lightbox_delete_error'] = "Error deleting album!";
$lang['delete_lightbox'] = "Delete album";
$lang['lighbox_lastaction'] = "Album last updated:";
$lang['delete_lightbox_confirm'] = "Do you really want to delete the album?";

//-----------------------------------------------------
//--- Misc --------------------------------------------
//-----------------------------------------------------
$lang['new'] = "new"; // Marks categories and images as "NEW"
$lang['home'] = "Home";
$lang['categories'] = "Categories";
$lang['sub_categories'] = "Subcategories";
$lang['lightbox'] = "My Album";

3_ FOOTER

Here, you've got 6 custom links.
You can create 6 own template pages and call them as shown above.
Each link to each "own_template.html" should so be:
Code: [Select]
<a href={url_home}?template=own_template">Own_template</a>
Particular case: you may prefer use the Contact Form MOD, instead of a custom html template page.
If so, you will create a "core" php file called "contact.php".
To link to this page, proceed like KurtW said.

Open the file includes/page_header.php and find:
Code: [Select]
  "url_captcha_image" => $site_sess->url(ROOT_PATH."captcha.php"),Insert after:
Code: [Select]
  "url_contact" => $site_sess->url(ROOT_PATH."contact.php"),
In the template file "my_footer.html", you will call the contact page by this link:
Code: [Select]
<a href="{url_contact}">CONTACT US</a>
--> Optional: if you need to do a multilingual site, please do the modifications in your language file for links descriptions, as mentioned by KurtW.

Hope I was clear enough, and sorry again for this loss of time. It's also more difficult to explain clearly than to understand...

142
Español / Castellano / Re: mas de una imagen aleatoria?
« on: May 07, 2008, 06:47:40 PM »
Hola;
a mi me sale bien, cón el mismo código.

El único cambio, es esta línea, que aparece dos veces:
Code: [Select]
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
que he cambiado por esto:
Code: [Select]
FROM (".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b)
Deberías borrar el espacio que queda detrás de:
Code: [Select]
?>
Saludos.

143
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 07, 2008, 04:04:07 PM »
Hello;
  • About contact, you'll have to install something like this: [MOD] Contact Form.
    In this case, you will have to use links like KurtW said, to link to a "contact.php" file, keeping user's session alive.

_____Or else, let your visitor use its emailing software, using a link like this in your menu or footer:
Code: [Select]
<a href="mailto:me@myhost.com">Contact us</a>

_____For links to external sites, like partners, you may use this in your menu or footer:
Code: [Select]
<a href="http://www.my_partner.com/" target="_blank">My partner</a>
By the way, I think you should be better helped if you could tell us how many links you'd like tu use, and precisely for what use.
You could have a help for anyone of them in an only post, I hope.

144
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 07, 2008, 02:08:08 PM »
Have you got existing pages for terms of use, contact form, or any other stuff?

145
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 06, 2008, 06:01:17 PM »
Hi, Kurtw;
my bad! :oops:
Did answer too much too quickly, but not checked enough.
You're totally right.

146
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 06, 2008, 04:39:52 PM »
Perhaps somebody with the right energy should put together all the essentials in a manual?  :P

Keep on looking at the tutorials forum here: Tutorials.

Mawenzi and others are making a great job. But be patient, they've just begun.

147
Hello;
you will find it in the lang/your_language/main.php file.

In english, for instance, you will have to change that line:
Code: [Select]
$lang['categories'] = "Categories";
and others like $lang_sub_categories... etc

148
Templates & Styles (Requests & Discussions) / Re: Menu?
« on: May 06, 2008, 12:33:10 PM »
Hello;
it should be possible, extending your template.

Here is an example, using the default template.

  • First, edit the file includes/page_header.php
At the end of this file, just before the closing:
Code: [Select]
?>
add these lines:
Code: [Select]
//---------------------------------------------------------------------------------------------
//---- Template my_menu.html ------------------------------------------------------------------
//---------------------------------------------------------------------------------------------

$my_menu = $site_template->parse_template("my_menu");
  $site_template->register_vars(array(
    "my_menu" => $my_menu
  ));
  unset($my_menu);
 
//---------------------------------------------------------------------------------------------
//---- Template my_footer.html ----------------------------------------------------------------
//---------------------------------------------------------------------------------------------

$my_footer = $site_template->parse_template("my_footer");
  $site_template->register_vars(array(
    "my_footer" => $my_footer
  ));
  unset($my_footer); 


  • Now, go to templates/your_template/ folder.

_____Create a first file called "my_menu.html", with this example code:
Code: [Select]
<div align="center">
<table  width="100" border="0" align="center" cellpadding="0" cellspacing="0">
 <tr>
  <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="index.php" style="text-decoration: none"><strong>First link</strong></a></td>
 </tr>
 <tr>
 <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="index.php" style="text-decoration: none"><strong>Second link</strong></a></td>
 </tr>
 <tr>
 <td width="100%" align="center" height="17" background="{template_url}/images/button.gif" ><a href="http://www.mysite.com/" style="text-decoration: none"><strong>Partner</strong></a></td>
 </tr>
 </table>
</div>
<br>
You will need also to copy this image: , into your_template/images/ directory.

_____Create another file called "my_footer.html" with this code:
Code: [Select]
<br /><div align="center">
  <table width="600" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr class="head1">
      <td width="25%" align="center" class="row1"><a href="contact.php">Contact us</a> </td>
      <td width="25%" align="center" class="row2"><a href="cookies.php">Cookies</a></td>
      <td width="25%" align="center" class="row1"><a href="terms.php">Terms</a></td>
      <td width="25%" align="center" class="row2"><a href="wazza.php">Etc...</a></td>
    </tr>
  </table>
</div>

  • Now, you're able to call {my_footer} and {my_menu} in any of your other template pages.

Example: open your_template/home.html file/
Find:
Code: [Select]
{endif random_image}
Add this:
Code: [Select]
{my_menu}
Find:
Code: [Select]
{footer}
Add BEFORE:
Code: [Select]
{my_footer}
I've done this with the default menu, as I said, and had this:

  • My_menu display:
  • My_footer display:

Once done, you just have to modify the file my_menu.html or my_footer.html once to get the modification in the whole template.
I'm sure you will be able to custom it as you prefer.

Please find in attachment the modified page_header.php, version 1.7.6 and the template files and image.

Salutations.

149
Français / Re: I search mod "new image upload for guest
« on: May 05, 2008, 11:19:18 PM »
Dans le doute, regardez ici: New images on different page

Pages: 1 ... 6 7 8 9 [10] 11 12 13