nee solly Marianne...

come on...smart people smile

I use this bbcode to align a picture left or right. So it look good in a portal.

right
left

            $text = preg_replace('#\[img=left\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#e', 'handle_img_tag_left(\'$1$3\')', $text);
            $text = preg_replace('#\[img=right\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#e', 'handle_img_tag_right(\'$1$3\')', $text);

Works great only i want one thing....i want that when somebody use the above bbcode that the picture always goto for example size 80 x 80. And when you click on it you get the large version. Don't know how to this...

Just as i put it here..thats the way we have done it.

Your welcome smile

put this .htaccess in the root from your server. Keep in mind that you don't see it in a FTP program when you upload it. You must use your admin panel to control this file. Also read something about it, so you know what you are doing.

This is what i use...

Options +SymLinksIfOwnerMatch
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(.*\.)?PUTYOUTDOMAINNAMEHERE.com(/)?.*$ [NC]
RewriteRule .*\.(mpeg|rar|zip|wmv|xml|asx|asf|gif|swf|png|jpg|pps|css|mpg|avi)$ http://localhost/ [R,NC]

we made this : http://www.shiftzone.com/forum/img/mail.gif

Btw, you can use every gif for it...

Put the url in your browser, because we block hotlinking.. smile

And put in your lang file (pms.php) this :

     'New messages'                 =>        '<img src="./img/mail.gif" width="12" height="12">  You have mail...',

lol, i find nothing there...

okay it works now smile another thingie...

How can i show a avatar in the portalnews.php ?.

doesn't work...strange enough.

Thats the one i also have... but i want 4 smile

hi i want to have 4 rows and not 3....can somebody tell how to this?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
<html dir="<pun_content_direction>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<pun_char_encoding>" />
<pun_head>
<style type="text/css">
    #left {
        width: 180px;
        float: left;
    }
 #right {
        width: 180px;
        float: right;
    }
    #main {
       
     margin-left: 190px;
     margin-right: 190px;
    }
</style>
</head>
<body>
 
<div id="punwrap">
<div id="pun<pun_page>" class="pun">
 

<div id="brdheader" class="block">
    <div class="box">
<img src="/forum/img/logo.png" width="800" height="100">
        <div id="brdtitle">

        </div>
        <pun_navlinks>
        <pun_status>
    </div>
</div>
  
<div id="left">    
<pun_include "recentmusic.php">
<pun_include "recentgames.php">
<pun_include "statistics.php">

</div>

<div id="right">  
<pun_include "login.php">
<pun_include "menu.php">
</div>

    <div id="main">
    
       
    
        <pun_main>
        
    </div>    


 
<div class="clearer"></div>
 
<pun_footer>
 
</div>
</div>
 
</body>
</html>

haha okay, im going to update, thanks smile

okay fixt it....everything works now!

Okay another strange thing, zip"ace"rar <---doesn't work in ALLOWED FILES when you hit the submit (edit this ruleset) button only zip stays or must i use , ?

Frank i have this :

$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], false) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error()); //Attachment Mod, changed the true to false...

Just like in the readme text...i see nothing wrong

downloaded from punres....

Not me smile check the install file from frank...i think

#
#---------[ 43. FIND (line: 187) ]--------------------------------------------
#

$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], false) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());


#
#---------[ 44. REPLACE WITH ]--(if you have added the latest changeset, just change the true to false, and add comment)---
#

$result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], false) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error()); //Attachment Mod, changed the true to false...

but when you look at the original, without the attachment mod

    $result = $db->query('SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM '.$db->prefix.'posts AS p INNER JOIN '.$db->prefix.'users AS u ON u.id=p.poster_id INNER JOIN '.$db->prefix.'groups AS g ON g.g_id=u.group_id LEFT JOIN '.$db->prefix.'online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id='.$id.' ORDER BY p.id LIMIT '.$start_from.','.$pun_user['disp_posts'], true) or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

try it here...

http://www.shiftzone.com/forum/post.php?fid=34

Post something and you get allot of repeating..

works only got a strange bug now...when a guest add comment, i get 6 times the same posting...

thanks!

People... can i use this hack on my PunnyBunny 1.2.14 ?

Yes i know the profile field MOD from Elbekko, but i want it on a different page and more questions. So a user have his own page. Possible?

Indeed i rebuild it from the crystalblue template...okay thanks...

huh...strange...

Okay its great when you make something that it looks the same in Explorer....but no.

When you follow this link : http://www.shiftzone.com/forum/post.php?tid=111 with Firefox you get darkgrey lines, just how i want it. When you do that with annoying explorer you get white lines...its annoying...what did i wrong?

nono just holland smile http://nl.wikipedia.org/wiki/Imo_(staat) hehe

Seriously.. a small word game is that realy impossible? because i see you guys write great scripts....so a small game must be peanuts....but hey, im no programmer smile