121
Mods & Plugins (Releases & Support) / Re: Mod phpbb : redirect to site
« on: October 28, 2008, 11:14:52 PM »
Thank you
But this does not work
But this does not work
Check the new Tutorial subforum with helpfull guides and tutorials for modifications and tweaks.
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.
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
<form action="{url_login}" method="post">
{lang_user_name}<br />
<input type="text" size="10" name="username" class="logininput" />
<br />
{lang_password}<br />
<input type="password" size="10" name="password" class="logininput" />
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><input type="checkbox" name="autologin" value="1" /></td>
<td><span class="smalltext">{lang_auto_login}</span></td>
</tr>
</table>
<br />
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
</form>
» <a href="{url_lost_password}">{lang_lost_password}</a><br />
» <a href="{url_register}">{lang_register}</a></td>
</tr>
</table>
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
Notice: Undefined index: user_name in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/page_header.php on line 422
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM (wallbiz_images i, wallbiz_categories c) LEFT JOIN forumphpbb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.image_id IN (36) AND c.cat_id = i.cat_id AND i.cat_id IN () ORDER BY image_name ASC, image_id ASC LIMIT 0, 12
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY image_name ASC, image_id ASC LIMIT 0, 12' at line 6
DB Error: Bad SQL Query: SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, c.cat_name, u.username FROM (wallbiz_images i, wallbiz_categories c) LEFT JOIN forumphpbb_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.image_id IN (36) AND c.cat_id = i.cat_id AND i.cat_id IN () ORDER BY image_name ASC, image_id ASC LIMIT 999
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY image_name ASC, image_id ASC LIMIT 999' at line 6
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/5079565f25315af9bcd81d8cc489f6ec/web/includes/db_mysql.php on line 116
<table width="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top" align="left">
<form action="{url_login}" method="post">
{lang_user_name}<br />
<input type="text" size="10" name="username" class="logininput" />
<br />
{lang_password}<br />
<input type="password" size="10" name="password" class="logininput" />
<br />
<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top">
<td><input type="checkbox" name="autologin" value="1" /></td>
<td><span class="smalltext">{lang_auto_login}</span></td>
</tr>
</table>
<br />
<input type="hidden" name="login" value="1" />
<input type="submit" value="{lang_login}" class="button" />
</form>
» <a href="{url_lost_password}">{lang_lost_password}</a><br />
» <a href="{url_register}">{lang_register}</a></td>
</tr>
</table>
http://www.fond-ecran-gratuit.biz/forum/http://www.fond-ecran-gratuit.biz/?sid=99ff6f203296f426c5991bed4c642255
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(" ", $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, aboveCode: [Select]//-----------------------------------------------------
this block:
//--- Print Out ---------------------------------------
//-----------------------------------------------------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