SOLVED!

Managed to solve it by myself. Seemes like I have a fixed height in my base.css. The comination of post.php and base.css makes the diffrence big_smile

Here's how to for anyone else who's interested.


base.css

- In base.css look for all txtarea and create another one called txtarealarge at every position.
- Set the apropriate values. (I only changed height, height: 500px)

post.php

--- Find ---
<div class="infldset txtarea">

--- Change to ---
<div class="infldset txtarealarge">

If you want to increase the box further play around with the rows and cols. It's all a combination of post.php and base.css

post.php

<textarea name="req_message" rows="25" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo isset($_POST['req_message']) ? pun_htmlspecialchars($message) : (isset($quote) ? $quote : ''); ?></textarea>

I'm trying to change the height of the Post new topic box - Message box. My forum should benefit alot from this when posting longer articles/text. This will give you a better overview when writing alot of text in my opinion. So I've been looking into post.php and changed the values rows="20" cols="95 but I don't get it to work. The box doesn't get any higher? Am I way off here and should I look into some other files?


post.php

<label><strong><?php echo $lang_common['Message'] ?></strong><br />
                        <textarea name="req_message" rows="20" cols="95" tabindex="<?php echo $cur_index++ ?>"><?php echo isset($_POST['req_message']) ? pun_htmlspecialchars($message) : (isset($quote) ? $quote : ''); ?></textarea><br /></label>

Been searching the forum and I can't find anything :S Anyone with the skills I'm missing?

I friend of mine solved it yesterday before I saw your respong MattF big_smile Thanks for your help anyways! Your the man big_smile


Here's how to solve it for anyone who's interested.

parser.php

// Turns an URL from the [flag] tag into an <img> tag or a <a href...> tag//

function handle_flag_tag($url, $is_signature = false)

{
    global $lang_common, $pun_config, $pun_user;

    $img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';

    if ($is_signature && $pun_user['show_img_sig'] != '0')

        $img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';

    else if (!$is_signature && $pun_user['show_img'] != '0')

        $img_tag = '<img class="postflag" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';


    return $img_tag;

}

base.css
Add this under section 7.4 These items control overflow and scrolling within posts.

IMG.postflag {width: 12px}

CountryFlagMod-1.1 1.0
AMP_BB_Code_ImgSize 1.1

Wasn't what I'm was looking for. I don't want to get a country flag per user I want to be able do describe a person, team or whatever by using a country flag/country image before the name. Let's say I want to describe a match between two teams. I will use:

[img]http://www...../img/flags/small/no.gif[/img] Norway - [img]http://www...../img/flags/small/no.gif[/img] Germany

Output: http://de.static.ggl.com/CB/images/flags/no.gif Norway - http://de.static.ggl.com/CB/images/flags/de.gif Germany

So the problem is that I don't nessacary want to describe a registerd person, it could be anyone or anything.

Would it be possible to edit parser.php or any other file and add a new TAG called [flag] were you could add px limitation to 12px X 12px?

MattF wrote:

If you look over on Punres, I believe someone released a mod for the country flags. (I seem to remember it had flaws, though. I could be mistaken upon that, however).

Aight! I'll check on that! It might work, Thanks alot!

Aight, to bad not what I'm looking for...

Is this a possible solution?
http://www.punres.org/viewtopic.php?id=3045


MattF wrote:

Why are you using country flags within posts? Surely the user details segment would be a better place.

Okey ...could you guide me?

Hmm...I've tried to use...

[img width="12px" height="12px"]http://www...../img/flags/small/no.gif[/img]

Output: [img width="12px" height="12px"]http://www...../img/flags/small/no.gif[/img]

...but it  doesn't work. Am I getting all this wrong?

I have a small but really annoying problem with my forum and within .../viewtopic.php... I'm currently using small "icons", country flags at my forum and there seemes to be some kind of problem with IE 6 and 7 and the size. Works just fine in Firefox and Safari but IE is another story :S

Here how it looks!

http://img134.imageshack.us/img134/9357/flagpt8.jpg

So, as you can see the flag gets out of hand and is way to big. The original size is 12px x 12px but somehow it resize's. Anyone with a clue? I'm lost here sad

9

(51 replies, posted in PunBB 1.2 discussion)

MySQL 5.0.18

pogenwurst wrote:
gleb wrote:

...I´m really lost here.

I´m using this line:

include('http://****/extern3.php?action=news&fid=2,8,9&summary=yes&show=3')

The line works but I want the first post in forums 2,8,9 to be displayed, not the last post in the selected forums. Do I have to change the code in my extern3.php or is there another incude for this?

Cheerrs!!

Yes, you'll have to edit the code. This mod behaves similarly to the news generator plugin.

Well I think  I´ve found the string to change. Changed it to...

$msg = $db->query('SELECT id, poster, poster_id, poster_ip, poster_email, message, posted, edited, edited_by FROM '.$db_prefix.'posts WHERE topic_id='.$id.' ORDER BY id LIMIT 1') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());

For thoose who are intrested.

...I´m really lost here.

I´m using this line:

include('http://****/extern3.php?action=news&fid=2,8,9&summary=yes&show=3')

The line works but I want the first post in forums 2,8,9 to be displayed, not the last post in the selected forums. Do I have to change the code in my extern3.php or is there another incude for this?

Cheerrs!!

Oki sounds great...anyone who could help me with this matter...my codingskills are 0 big_smile

Is it possible to make this mod viewable in profile.php ...let´s say under "User activity"?

I don´t believe it´s a *.css problem. What I´ve done so far is:

- Replaced all my *css´s with original ones. No solution.
- Changed viewtopic to original one. No solution.

I´ve got an idea that it could be my modified *.tpl file. Have to check this later today.

Strange problem with viewtopic.php + IE while the [ /code] command is used.

What happens is when I´m using [ /code] command it doesn´t stay within the forum witdh? See the pic.

http://img230.imageshack.us/my.php?image=93826564mj9.png

Any clue...anyone?

PS. [ /code] command works with Firefox. [ /img] command works with Firefox and IE. DS.

Koos wrote:
finley9 wrote:

can ANYone tell me how to display the birthdays in the board stats in index.php

I have the latest version of the calendar working on version 1.2.11

all I want is to be able to display 'today's birthdays' in the stats.

Can someone PLEASE help me smile

Hi - this can be done quite easily. Here is how I did it. This should work with both Calendar-2.0.8a beta and Calendar-2.0.7.

Screenshot

#
#---------[ 1. OPEN ]---------------------------------------------------------
#

index.php


#
#---------[ 2. FIND (line: 192) ]---------------------------------------------
#

    $num_users = count($users);


#
#---------[ 3. BEFORE, ADD ]---------------------------------------------------
#

//-------Birthday Code Start-------
    // today's birthdays
    $ttoday = time();
    $tdiff = ($pun_user['timezone'] - $pun_config['o_server_timezone']) * 3600;
    $ttoday += $tdiff;
    $tyear = date("Y");
    $tmonth = date("n");
    $tday = date("j", $ttoday);
    
$result = $db->query('SELECT id, username, birthday FROM '.$db->prefix.'users WHERE DAYOFMONTH(birthday) = '.$tday.' AND MONTH(birthday) = '.$tmonth.' ORDER BY username') or error('Unable to fetch birtday list', __FILE__, __LINE__, $db->error());

    $bdays_today = array();
    while ($pun_bdays_today = $db->fetch_assoc($result)){
        $bparts = Explode('-', $pun_bdays_today['birthday']);
        $bday_year = $bparts[0];
        $age = (strlen($bday_year)!='4')? "": "(".($tyear-$bday_year).")";
        $bdays_today[] .=  "\n\t\t\t\t".'<dd><a href="profile.php?id='.$pun_bdays_today['id'].'">'.$pun_bdays_today['username'].'</a>'.$age;
        }
        
    $num_bdays_today = count($bdays_today);
//-------Birthday Code End-------


#
#---------[ 4. FIND (line: 223) ]---------------------------------------------
#

}
else
    echo "\t\t".'</dl>'."\n\t\t\t".'<div class="clearer"></div>'."\n";


#
#---------[ 5. BEFORE, ADD ]---------------------------------------------------
#

// list today's birthdays           
    if ($num_bdays_today > 0)
        echo "\t\t\t".'<dl id="bdayslist" class= "clearb">'."\n\t\t\t\t".'<dt><strong>'."Today's birthdays".': </strong></dt>'."\t\t\t\t".implode(',</dd> ', $bdays_today).'</dd>'."\n\t\t\t".'</dl>'."\n";
    else
        echo "\t\t\t".'<div class="clearer"></div>'."\n";


#
#---------[ 6. OPEN ]---------------------------------------------------------
#

style/imports/base.css


#
#---------[ 7. FIND (line: 229) ]---------------------------------------------
#

/* 8.1 Horizontal display of online list, main navigation menu and breadcrumbs */


#
#---------[ 8. AFTER, ADD ]---------------------------------------------------
#

#bdayslist DD, #bdayslist DT,


#
#---------[ 9. SAVE/UPLOAD ]-------------------------------------------------
#

Doesn´t seem to wotk at all for http://www.punres.org/viewtopic.php?pid=17767#p17767 Nothing is displayed in the statistic frame? Any solution anyone?

I´m running a community based on the miniportal script. I really want to change the way the portal acts when you are at the portal itself (frontpage) and when you hit the forum link. I´ll try to explain:

As it is right now the community uses main.tpl but I would like to use main.tpl and forum.tpl if it´s possible. So when you are at the portal page (frontpage) the community uses main.tpl and when you hit the forum button/link it uses forum.tpl with another layout. This means that I have the freedom to decide wich blocks/pictures and so on will be visible in the diffrent *.tpl´s. In the end if this is possible the layout could be changed like below:

Portal ---> main.tpl
Forum ---> forum.tpl
Search ---> search.tpl
Userlist ---> userlist.tpl
...and so on.

I hope you understand what I mean and please help me with this matter if it´s possible. You can find my site at www.cssforumet.se

18

(3 replies, posted in Archive)

Inga problem big_smile

19

(3 replies, posted in Archive)

Hmm om jag förstår så fösöker du köra filen via flash fxp? ...det är inte rätt. Du skall köra filen via din browser. Typ såhär:

http://www.minsida.se/forum/install_mod.php

Yeah but in wich file do I look into? Is it functions.php maybe?

I know I´ve seen the thread somewhere...been searchin the last hour but it seemes like my search skills are long gone.

My problem: were do I change the code so I can se more than the 10 usernames that are online. I´m using minportal at the moment and the names does show up on the left hand side...but only 10 of them....if there are more than ten users online at the same time the names disapears and changes into "Online user:12". I hope you understand what I mean big_smile

// cheers

Yepp to late hehe...but it´s all workin fine now. The forum got a wellneeded restart hehe...thanx anyway big_smile

23

(8 replies, posted in Archive)

Aha okej big_smile ...har kollat av mitt forum nu med ^^

24

(8 replies, posted in Archive)

great! big_smile hur hade du chmoddat dem?..man kanske skulle kolla in sin egna forum hehe

25

(8 replies, posted in Archive)

Det där var rackarns skumt....hmm varken viewtopic.php eller viewforum.php fungerar...däremot userlist, search och allt annat. Kan för lite om det här men slänger bara ut en allmän tanke...är det ngt databasrelaterat? Att just databasen för topics etc som pajat medans users o s vl igger intakt?

I o f så fungerar det ju att söka på i forumet (söka efter trådar, ämnen) och då visas ju även ett reslutat...bara när man skall kolla på dem som det inte fungerar?