Found solution my self.
1 2011-01-20 18:22
Topic: SQL injection help (0 replies, posted in PunBB 1.2 modifications, plugins and integrations)
2 2007-02-19 12:13
Topic: total users online? (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
How do I add "Total users online:"
Registered users online: 50
Guests online: 50
Total users online: 100
3 2007-01-12 08:50
Re: Login Block For Miniportal (9 replies, posted in PunBB 1.2 discussion)
nevermind
4 2007-01-12 08:21
Topic: integrate Fpoll (0 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hi, Im trying to integrate Fpoll in my sidebar on my punbb forum.
http://www.phpfront.com/fpoll.php
BUT I get an error:
Fatal error: Call to a member function on a non-object in \footer.php on line 158
Anyone know how I fix that?
5 2007-01-11 20:22
Topic: news generator on punbb (1 replies, posted in PunBB 1.2 troubleshooting)
Hi, how do I get that line between my news?! Im using the ap_news_generator.
check this out: http://punbb.org/
6 2006-09-05 06:58
Topic: Page Rank (3 replies, posted in General discussion)
My site has pr 3 on www.domain.net, but only pr 2 on www.domain.net/index.php
How do I fix that?
7 2006-08-30 12:07
Topic: 2 forums and same users? (6 replies, posted in PunBB 1.2 discussion)
Is it possible to have 2 forums and use the same userlist? Is it possible to have 2 forums and share a categori between them. For example use the same "off topic" on both forums?
8 2006-08-26 14:39
Re: Google sitemap (18 replies, posted in PunBB 1.2 troubleshooting)
It works now and really good! I can really recommend using this tool. 5 days ago I had like 300 pages indexed, now I have 5000! awsome.
9 2006-08-20 09:00
Topic: 2 forum och samma login? (0 replies, posted in Archive)
Är det möjligt att ha 2 olika forum men ha samma login till båda? En medlem kan alltså skriva på båda forumen. Är det möjligt att dela en "kategori" mellan 2 eller flera forum?
10 2006-08-01 13:53
Re: Google sitemap (18 replies, posted in PunBB 1.2 troubleshooting)
You can put XML data in a file and give it any extension you want. However, I don't know if that causes any problems with Google. (I use .xml.gz myself.)
Can u upload your file here?
11 2006-08-01 10:48
Re: Google sitemap (18 replies, posted in PunBB 1.2 troubleshooting)
There's an option for it to output the results to XML files
And since when does the sitemap need to end in .xml? The PHP file should work perfectly
Well it doesnt because .php is not a supported format.
12 2006-08-01 08:57
Re: Google sitemap (18 replies, posted in PunBB 1.2 troubleshooting)
copy the outptted text and paste it to a new file and save it as "sitemap.xml" preferably in something OTHER than notepad. suggestion: Notepad++ http://notepad-plus.sourceforge.net/uk/site.htm
I have done that now but I got an error:
$output .= '<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">'."\n";
------------^
13 2006-08-01 06:23
Topic: Google sitemap (18 replies, posted in PunBB 1.2 troubleshooting)
I have downloaded this: http://www.punres.org/viewtopic.php?id=1639
and tryed to upload it on https://www.google.com/webmasters/sitemaps/
but it isent woring becase the sitemap has to be in xml-format. How do I fix that?
14 2006-07-02 20:21
Topic: create a new css menu. (3 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Hi, how do I change the regular menu to a new css drop menu? How do I integrate the new menu in to the forum?
The code that generates the menu:
//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
global $pun_config, $lang_common, $pun_user;
// Index and Userlist should always be displayed
$links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
$links[] = '<li id="navforum"><a href="forum.php">'.$lang_common['Forum'].'</a>';
$links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';
if ($pun_config['o_rules'] == '1')
$links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';
if ($pun_user['is_guest'])
{
if ($pun_user['g_search'] == '1')
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
$links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';
$info = $lang_common['Not logged in'];
}
else
{
if ($pun_user['g_id'] > PUN_MOD)
{
if ($pun_user['g_search'] == '1')
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
else
{
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
}
// Are there any additional navlinks we should insert into the array before imploding it?
if ($pun_config['o_additional_navlinks'] != '')
{
if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links))
{
// Insert any additional links into the $links array (at the correct index)
for ($i = 0; $i < count($extra_links[1]); ++$i)
array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i]));
}
}
return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';
}
How do I change the standard menu to this new one:
<div class="menu">
<ul>
<li><a class="hide" href="../menu/index.html">DEMOS</a>
<!--[if lte IE 6]>
<a href="../menu/index.html">DEMOS
<table><tr><td>
<![endif]-->
<ul>
<li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
<li><a class="hide" href="../opacity/index.html">OPACITY</a>
<!--[if lte IE 6]>
<a href="../opacity/index.html">OPACITY
<table><tr><td>
<![endif]-->
<ul>
<li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li>
<li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
</ul>
<!-- clear the floats if required -->
<div class="clear"> </div>
</div>
I want it to look like this one: http://www.marine-hunters.co.uk/
15 2006-07-02 20:13
Re: Miniportal and css problem (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
no one knows this?
16 2006-07-01 11:02
Re: Ligger vänsterborden rätt för er? (2 replies, posted in Archive)
Den ligger fel hos mig.
17 2006-06-29 07:27
Topic: Miniportal and css problem (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Im using miniportal and I have a problem. The thing is that miniportal uses the same css file as the rest of the forum. I want the frontpage/mainpage with the news to look a bit different then the forum does. How do I do that without changing the forum style.
18 2006-06-28 21:31
Topic: Ny meny (0 replies, posted in Archive)
Tänkte byta ut den vanliga menyn till en css drop-meny. Hur ska man göra detta rent tekniskt?
För er som inte vet så i main.tpl implementeras länkarna genom <pun_navlinks> från functions.php.
Någon som har gjort något liknande och vill/kan hjälpa?
Hur ska jag få in denna kod och ändå ha kvar if-satserna (om man är inloggad så kommer profil upp mm)
Så här ser menyn ut:
<div class="menu">
<ul>
<li><a class="hide" href="../menu/index.html">DEMOS</a>
<!--[if lte IE 6]>
<a href="../menu/index.html">DEMOS
<table><tr><td>
<![endif]-->
<ul>
<li><a href="../menu/zero_dollars.html" title="The zero dollar ads page">zero dollars</a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
<li><a class="hide" href="../opacity/index.html">OPACITY</a>
<!--[if lte IE 6]>
<a href="../opacity/index.html">OPACITY
<table><tr><td>
<![endif]-->
<ul>
<li><a href="../opacity/colours.html" title="colour wheel">opaque colours</a></li>
<li><a href="../opacity/picturemenu.html" title="a menu using opacity">opaque menu</a></li>
</ul>
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
</ul>
<!-- clear the floats if required -->
<div class="clear"> </div>
</div>
Hur får jag in menyn i detta?:
//
// Generate the "navigator" that appears at the top of every page
//
function generate_navlinks()
{
global $pun_config, $lang_common, $pun_user;
// Index and Userlist should always be displayed
$links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
$links[] = '<li id="navforum"><a href="forum.php">'.$lang_common['Forum'].'</a>';
$links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';
if ($pun_config['o_rules'] == '1')
$links[] = '<li id="navrules"><a href="misc.php?action=rules">'.$lang_common['Rules'].'</a>';
if ($pun_user['is_guest'])
{
if ($pun_user['g_search'] == '1')
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navregister"><a href="register.php">'.$lang_common['Register'].'</a>';
$links[] = '<li id="navlogin"><a href="login.php">'.$lang_common['Login'].'</a>';
$info = $lang_common['Not logged in'];
}
else
{
if ($pun_user['g_id'] > PUN_MOD)
{
if ($pun_user['g_search'] == '1')
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
else
{
$links[] = '<li id="navsearch"><a href="search.php">'.$lang_common['Search'].'</a>';
$links[] = '<li id="navprofile"><a href="profile.php?id='.$pun_user['id'].'">'.$lang_common['Profile'].'</a>';
$links[] = '<li id="navadmin"><a href="admin_index.php">'.$lang_common['Admin'].'</a>';
$links[] = '<li id="navlogout"><a href="login.php?action=out&id='.$pun_user['id'].'">'.$lang_common['Logout'].'</a>';
}
}
// Are there any additional navlinks we should insert into the array before imploding it?
if ($pun_config['o_additional_navlinks'] != '')
{
if (preg_match_all('#([0-9]+)\s*=\s*(.*?)\n#s', $pun_config['o_additional_navlinks']."\n", $extra_links))
{
// Insert any additional links into the $links array (at the correct index)
for ($i = 0; $i < count($extra_links[1]); ++$i)
array_splice($links, $extra_links[1][$i], 0, array('<li id="navextra'.($i + 1).'">'.$extra_links[2][$i]));
}
}
return '<ul>'."\n\t\t\t\t".implode($lang_common['Link separator'].'</li>'."\n\t\t\t\t", $links).'</li>'."\n\t\t\t".'</ul>';
}
19 2006-05-17 09:21
Re: extern.php and css (9 replies, posted in PunBB 1.2 troubleshooting)
thx alot.
20 2006-05-17 09:18
Re: Lite frågor (2 replies, posted in Archive)
Svarar på dom jag kan.
2. Finns massor att ladda ner. Här tex.
http://www.punres.org/viewforum.php?id=2
4. http://wiki.punres.org/Change_forum_width
5. Om du lägger till en moderator till ett forum kommer det väl upp automatiskt?
21 2006-05-17 09:10
Topic: Contact form (4 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Is there a contact integration somewere? Like this one: http://www.awmestore.com/site/contact.php
edit: never mind, solved it myself.
22 2006-05-17 09:07
Topic: Edit the menu. (1 replies, posted in PunBB 1.2 discussion)
How do I add my own css menu? What is <pun_navlinks> ? If u wuld like a menu like this: http://www.mywebstuff.com/02_css/css_07.html
Where do I find this code?
<div id="brdmenu" class="inbox">
<ul>
<li id="navextra1"><a href="http://punbb.org/">PunBB.org</a></li>
<li id="navindex"><a href="index.php">Index</a></li>
<li id="navuserlist"><a href="userlist.php">User list</a></li>
<li id="navrules"><a href="misc.php?action=rules">Rules</a></li>
<li id="navsearch"><a href="search.php">Search</a></li>
<li id="navprofile"><a href="profile.php?id=5355">Profile</a></li>
<li id="navlogout"><a href="login.php?action=out&id=5355">Logout</a></li>
</ul>
</div>
in the main.tpl is just says <pun_navlinks>.
23 2006-05-17 08:38
Re: extern.php and css (9 replies, posted in PunBB 1.2 troubleshooting)
no one knows this?
24 2006-05-16 07:41
Topic: extern.php and css (9 replies, posted in PunBB 1.2 troubleshooting)
Hi have used extern.php to get some active topics and some stuff. How do I change the css-file? (Want to add some padding to the text).
<div id="left">
<div class="block">
<h2 class="block2"><span>Whos Online?</span></h2>
<div class="box">
<pun_online>
</div>
</div>
<div class="block">
<h2><span>Menu</span></h2>
<div class="box">
<pun_sidelinks>
</div>
</div>
<div class="block">
<h2><span>Latest news</span></h2>
<div class="box">
<pun_include "active_topics.php">
</div>
</div>
<div class="block">
<h2><span>Active topics</span></h2>
<div class="box">
<pun_include "active_posts.php">
</div>
</div>
</div>
25 2006-05-06 16:39
Topic: Image upload (1 replies, posted in PunBB 1.2 discussion)
Witch one is the best image upload mod right now?
http://www.punres.org/desc.php?pid=117
http://www.punres.org/desc.php?pid=113