so you mean using the normal update but backing up my old files, then using hdiff/winmerge to quickly find/add my custom lines of code again?
sounds cool :>
You are not logged in. Please login or register.
PunBB Forums → Posts by AppeL
Pages 1
so you mean using the normal update but backing up my old files, then using hdiff/winmerge to quickly find/add my custom lines of code again?
sounds cool :>
I edit/added several lines of code in a lot of files of punBB.
so my question now is, if there is any possibility of keeping that additional lines in while updating punbb to a newer version?
or do i have to go through my whole addons/mods and set it up again?
Here is a plugin to reset the users' post count to their actual number of posts, as post count does not decrease when deleting posts.
It's v1.0 and works fine for me in punBB 1.2.15
you can download it here:
http://appel42.funpic.de/
As it is my first plugin for punBB ever, i would appreciate it when you give me some feedback or let me know about any bugs and errors,
ok, here it is:
works
ill write an admin plugin for this maybe
would be my first
thx
i replaced user_id with poster_id (because there was no user_id column in the posts table) and now all users have 0 posts -.-
it's MySQL 4.1.22
(i run the sql query directly in the phpmyadmin)
I actually wrote a plugin to do this a little while back (for everyone in the forums though), lets see if it is somewhere...
Aha, yes, I have a copy I can get to (I don't know why I didn't release it)
eww, sry for pulling up this old thread, but i wonder where i can find your plugin for post count reseting
file_get_contents and fsockopen is disabled at my webhoster
how can use fopen here?
what to do with the resource when openend the extern.php?
Actually.... yes.
But why using Template Engine when i use PHP code in it -_-?
Hi,
I'm using a Template System, and i want to replace {$tickerlist} (in the Template) with the 10 newest Topics of the Forum. So i need to put the "<li>foobar</li>" output from the extern.php into a variable that i can assign to $tickerlist later.
I tried to replace
echo '<li><a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.$subject_truncated.'</a></li>'."\n";
with
$ret .= '<li><a href="'.$pun_config['o_base_url'].'/viewtopic.php?id='.$cur_topic['id'].'&action=new" title="'.pun_htmlspecialchars($cur_topic['subject']).'">'.$subject_truncated.'</a></li>'."\n";
in the extern.php.
Then included the extern.php in my php file that assigns variables for the template and assigned the $ret to the tickerlist.
include 'http://localhost/pages/virtpress/forum/extern.php';
$smarty->assign('tickerlist', $ret);
(I assigned the $_GET variables directly at the beginning in the extern.php, because i must not use paramters behind the URL.)
<ul>
{$tickerlist}
</ul>
Now it puts out nothing at the page -.-
Why's that? Anyone has another idea for using extern.php with a Template System?
I wonder if there is a list with all variables that can be accessed when common.php is included e.g. $pun_user['username'] etc
Pages 1
PunBB Forums → Posts by AppeL
Powered by PunBB, supported by Informer Technologies, Inc.