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

Pages: 1 ... 7 8 9 10 [11] 12 13 14 15 ... 23
151
Templates & Styles (Releases & Support) / [MOD] reCAPTCHA
« on: March 12, 2009, 08:15:21 PM »
works cool! POwer to the books and the blind people! Cool audio captcha.. first I was thinking... what the? but very cool.. better than entering numbers like a machiene :)

152
I am trying to find out how to show recent comments for category only and its subcat to show on the category.html

I have created a new thread here: http://www.4homepages.de/forum/index.php?topic=24380.new#new since it is different than this mod kind of.


Can you put your brainpower to this new idea and awsome complimentary mod V@no? Thanks!

153
Hi!

How can we show the latest comments for the category (All the pictures in the category only, and all subcats) on the category.html template?

Thanks!!!

154
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: March 12, 2009, 06:59:43 AM »
How do you disable this error message:

The name should be shorter than  characters.


It seems to make more problems than it solves.

155
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: March 12, 2009, 06:35:20 AM »
working my way through this...


Page 7 of this mod says to find:
Code: [Select]
$shout_message = (stripslashes(trim($HTTP_POST_VARS['shout_message']))); in shout_editor.php ...

and after put this:
Code: [Select]
$captcha = (isset($HTTP_POST_VARS['captcha'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['captcha'])) : "";
     if ($captcha_enable_contact && !captcha_validate($captcha)) {
      $shout_message .= (($shout_message != "") ? "<br />" : "").$lang['captcha_required'];
    }

and it says to find
Code: [Select]
"sh_message" => $shout['0']['message'],
and after  it add
Code: [Select]
"captcha_shout" => (bool)$captcha_enable_shout,
      "lang_captcha" => $lang['captcha'],
      "lang_captcha_desc" => $lang['captcha_desc'],


The only problem is I dont have this code! to modify in shout_editor.php

And the following styles were not included in the mod and had to be added to style.css:

shoutmsg

and

shoutusr

here is my shout_editor.php
Code: [Select]
<?php 
define
('GET_CACHES'1);
define('ROOT_PATH''./');
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();
include(
ROOT_PATH.'includes/page_header.php');
define('SHOUTBOX_TABLE'$table_prefix.'shoutbox');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={charset}" />
<title>Shoutbox Editor</title>
<link rel="stylesheet" href="<?php echo TEMPLATE_PATH."/style.css" ?>" />
<SCRIPT TYPE="text/javascript">
<!--
window.focus();
//-->
</SCRIPT>
</head>
<body style="margin: 0">
<?php

$shout_id 
$HTTP_GET_VARS['shout_id'];


if (
$action == "editupdate") {
  
$sql "UPDATE ".SHOUTBOX_TABLE." SET message='".$HTTP_POST_VARS['shout_message']."' WHERE id = ".$shout_id."";
  
$result $site_db->query($sql);
  
$action "edit";
  echo 
$lang['sh_edited'];
}
if (
$action == "edit") {
  unset(
$shout);
  
$sql "SELECT * FROM ".SHOUTBOX_TABLE." WHERE id = ".$shout_id;
  
$result $site_db->query($sql);
  while (
$row $site_db->fetch_array($result)) {
    
$shout[] = $row;
  }
  
  if (
$shout['0']['usrid'] == $session_info['session_user_id']) {
  
    
?>

      <form method="post" action="<?php echo $site_sess->url(ROOT_PATH."shout_editor.php?action=editupdate&shout_id=".$shout_id?>">
      <table>
    <tr>
        <td>
        <?php echo $lang['sh_name'?><br>
          <input type="text" name="shout_user" value="<?php echo $shout['0']['name'?>" class="shoutinput">
          </td>
        </tr>
        <tr>
        <td>
        <?php echo $lang['sh_message'?><br>
        <textarea name="shout_message" cols="21" rows="2" class="shouttextarea"><?php echo $errormsg; echo $shout['0']['message'?></textarea>
        <input type="submit" name="shout" value="<?php echo $lang['sh_edit'?>" class="button">
  <a href="<?php echo $site_sess->url(ROOT_PATH."shout_editor.php?action=delete&shout_id=".$shout_id?>"><input type="button" value="<?php echo $lang['sh_delete'?>" class="button"></a>
        </td>
      </tr>
      </table>
      </form>
    <?php
    
unset($action);
  }
}

if (
$action == "delete") {
  echo 
"<br /><br /><a href=\"".$site_sess->url(ROOT_PATH."shout_editor.php?action=deleteyes&shout_id=".$shout_id)."\">".$lang['sh_ask_delete']."</a>";
}

if (
$action == "deleteyes") {
  
$sql "DELETE FROM ".SHOUTBOX_TABLE.
        WHERE id = "
.$shout_id;
  
$result $site_db->query($sql);
  echo 
"<br /><br />".$lang['sh_deleted'];
}

echo 
"<br /><a href=\"#\" onClick=\"javascript: window.close();\">".$lang['sh_close']."</a>"
?>

</body>
</html>
<?php 
include(ROOT_PATH.'includes/page_footer.php')
?>


157
Awsome. Thank you very much!

158
Mods & Plugins (Releases & Support) / Re: [MOD] Shoutbox
« on: March 11, 2009, 09:15:22 PM »
on 1.76 I recieve the message after pushing the post button

Quote
:The name should be shorter than characters.

When push the button, it refreshed the screen, however there is no shout...

159
I think you mean to get the flags incluuded? I tried it and it didnt work. i replied to the link you provided.. it worked for details, but not for index.php...

Not to get the actual guestbook entries o be shown on the front page would be cool :)

I am all ears

160
Ah it is beyond me :) I am fighting jus tto get the mods done with instructions :)

161
Mods & Plugins (Releases & Support) / Re: [MOD] Last comments v1.1.0
« on: March 11, 2009, 03:24:55 PM »
Replying to the correct thread...

how do we get the user flag to display on home.html wise one :)

162
Mods & Plugins (Releases & Support) / Re: [MOD] guestbook
« on: March 11, 2009, 03:23:05 PM »
It would be so weet to get these comments on home.html... if anyone found outhow please share the info!

163
BTW it works great on details.php comments.... jus t not on the front page.... or index.php/home.html

164
I have tried adding this to index.php
Code: [Select]
//--- Kommentar-Autor COUNTRY FLAGS ---
    if (!class_exists("GeoIP"))
    {
      include(ROOT_PATH."includes/geoip.inc");
    }
    $gi = geoip_open(ROOT_PATH."includes/GeoIP.dat",GEOIP_STANDARD);
    $countries = array();
    $cid = geoip_country_code_by_addr($gi, $comment_row[$i]['comment_ip']);
    if (empty($cid)) $cid = "lan";
    $countries[$cid] = isset($countries[$cid]) ? $countries[$cid]+1 : 1;
    $comment_user_flag = "<img src=\"".ROOT_PATH."flags/".strtolower($cid).".gif"."\" alt=\"".(($cid != "lan") ? $gi->GEOIP_COUNTRY_NAMES[$gi->GEOIP_COUNTRY_CODE_TO_NUMBER[$cid]] : "Unknown or LAN")."\" border=0>";
//--- Kommentar-Autor COUNTRY FLAGS ---

      $site_template->register_vars(array(
        "comment_id" => $comment_row[$i]['comment_id'],
        "comment_user_flag" => $comment_user_flag,[code]

and
[code]{comment_user_flag}

But all I get is a gif with a question mark.


I have even tried removing this as index.php has not this code:
Code: [Select]

        "comment_id" => $comment_row[$i]['comment_id'],


but it had no effect.

Sorry... I knew how to do this 5 years ago. I have since been so busy beyond belief and forgotten a lot of stuff. Im now trying to do my site before the world economy falls off cliff, humanity is reset and people start eating their young.[/code][/code]

165
As far as I know it is impossible. I hard to hard code the youtube video into the template.

Pages: 1 ... 7 8 9 10 [11] 12 13 14 15 ... 23