27 2007-10-24 16:31
Re: My forum (5 replies, posted in PunBB 1.2 troubleshooting)
if you have ftp access just upload the extra file in the punbb1.2.15 download saying something like turn_maintance_off.php and upload the file to your ftp, then access it in your browser (http://site.com/turn_maintance_off.php) and then you will be able to turn it off
28 2007-10-17 04:04
Re: Having Truble.... (6 replies, posted in PunBB 1.2 troubleshooting)
I'd suggest that you start with searching (or look)
It's not so hard to find out how to do it if you a search or look (e.g on the front page there is a news post about video tutorials)
[Click here to see the vids]
29 2007-10-11 02:02
Re: Admin Board - Webmaster Forum (17 replies, posted in PunBB 1.2 show off)
Sounds like a good site I have registered myself there.
30 2007-10-02 13:24
Re: need help converting from e107 to punbb (9 replies, posted in Programming)
Can I please have this converter? Have a e107 site that I want to convert to punbb
31 2007-09-26 20:37
Re: Can Moderators change the group of a given user? (5 replies, posted in PunBB 1.2 troubleshooting)
No, all the code in the code boxes are for profile.php only
in functions just search for profile.php or Essentials and you should find it
should be easy to find. Just remove the && $pun_config['p_mod_ban_users'] == '1' and all mods should be able to view the admin link
32 2007-09-26 19:11
Re: Can Moderators change the group of a given user? (5 replies, posted in PunBB 1.2 troubleshooting)
I'm trying to reach your website but I get either a timeout or a blank page when I sucessfully reach it. Although My connection is working fine, I'll test it again when I get home.
yea, they had some problems with one of the routers and mine was on that one
But I changed some stuff in the profile.php file
My Mods always have access to the Admin menu on profile (Not allowed to ban until im able to set up some temp ban option)
I just found the code that was for Admins to change group and pasted it in the MOD field and then I could see and select the groups.
But then I also had to to it so that they couldn't change to Admin, Mod or VIP but only Member and Donate
Find
if ($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_ban_users'] == '1')
Above Add (change the group ids or what you feel like)
if ($pun_user['id'] != $id)
{
?>
<div class="inform">
<fieldset>
<legend><?php echo $lang_profile['Group membership legend'] ?></legend>
<div class="infldset">
<select id="group_id" name="group_id">
<?php
$result = $db->query('SELECT g_id, g_title FROM '.$db->prefix.'groups WHERE g_id!='.PUN_GUEST.' AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.' ORDER BY g_title') or error('Unable to fetch user group list', __FILE__, __LINE__, $db->error());
while ($cur_group = $db->fetch_assoc($result))
{
if ($cur_group['g_id'] == $user['g_id'] || ($cur_group['g_id'] == $pun_config['o_default_user_group'] && $user['g_id'] == ''))
echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'" selected="selected">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
else
echo "\t\t\t\t\t\t\t\t".'<option value="'.$cur_group['g_id'].'">'.pun_htmlspecialchars($cur_group['g_title']).'</option>'."\n";
}
?>
</select>
<input type="submit" name="update_group_membership" value="<?php echo $lang_profile['Save'] ?>" />
</div>
</fieldset>
</div>
<?php
}
Added this to the code
AND g_id!='.PUN_ADMIN.' AND g_id!='.PUN_MOD.' AND g_id!='.PUN_VIP.'
You can change this with what ever you feel like (recommend that ADMIN and MOD stay but VIP you can change to an group id or remove it.
Then I also made it so that MODS cant view and edit VIP profiles
Search for // View or edit? and you will find it.
if ($pun_user['id'] != $id &&
($pun_user['g_id'] > PUN_MOD ||
($pun_user['g_id'] == PUN_MOD && $pun_config['p_mod_edit_users'] == '0') ||
($pun_user['g_id'] == PUN_MOD && $user['g_id'] < PUN_GUEST) ||
($pun_user['g_id'] == PUN_MOD && $user['g_id'] == PUN_VIP)))
Added an extra field under with VIP
I edited functions.php where the profile links are and made it so that the Mods can see that link even if the BAN option is set to No (0)
yea, forgot that I also changed it so that mods also are allowed to update group
33 2007-09-26 14:29
Re: Can Moderators change the group of a given user? (5 replies, posted in PunBB 1.2 troubleshooting)
I have it like that on my forum
Login on Demo Account with these details
U: Demo
P: test
You are only allowed to change the "test" account details
34 2007-09-23 18:28
Re: Forum was deleted (including account) (3 replies, posted in PunBB 1.2 troubleshooting)
btw this is a problem you should take up in the support forum on punbb-hosting and not here as it is a problem on their side and nothing that we can fix
35 2007-09-23 17:22
Re: Clan? (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
there is someone working on it: http://www.punres.org/viewtopic.php?id=3885
36 2007-09-21 18:01
Re: Personal HomePage (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
There is no line numbers in the [ code ] tag...
---------------New Posts AFter my last Visit--------------------------
//Start Subst - <pun_my_newpost>. new posts after my last visit
ob_start();
?>
<div class="block" id="mynewposts">
<h2><span><?php echo $lang_my['New Posts'] ?></span></h2>
<div class="box">
<div class="inbox">
<?
$result = $db->query('SELECT t.id,t.subject,t.last_post_id FROM '.$db->prefix.'topics as t WHERE t.last_post >'.$pun_user['last_visit']) or error('Unable to fetch new posts from your last visit',__FILE__,__LINE__, $db->error());
//die($db->num_rows($result));
if($db->num_rows($result))
{
while($cur_posts = $db->fetch_assoc($result))
{
$new_posts = '<ul><li><a href="'.$pun_config['o_base_url'].'/viewtopic.php?pid='.$cur_posts['last_post_id'].'#p'.$cur_posts['last_post_id'].'">'.$cur_posts['subject'].'</a></li></ul>';
echo $new_posts;
}
} else {
require PUN_ROOT.'lang/'.$pun_user['language'].'/search.php';
echo ($lang_search['No new posts']);
}
?>
</div>
</div>
</div>
<?
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_my_new_posts>', $tpl_temp, $tpl_main);
ob_end_clean();
//Start Subst - <pun_my_newpost>
---------------New Posts AFter my last Visit--------------------------
37 2007-09-21 17:17
Re: Personal HomePage (5 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Could you use Code Tags please
38 2007-09-16 18:32
Re: paypal membership (47 replies, posted in Programming)
Updates on this? Would be handy has my forum is getting ready and badly need this stuff
39 2007-09-15 20:31
Re: Need help on basically everything. (6 replies, posted in PunBB 1.2 troubleshooting)
Chad27 have you looked on the video tutorials?
40 2007-09-15 13:26
Topic: PunBB tutorials on Stage6? (0 replies, posted in PunBB 1.2 discussion)
Most of you have probably heard of Stage6.
I would like to have tutorials and other stuff about punbb on that website and then add it to the PunBB channel that is there
Anyone up for this?
Oh if you upload a tutorial or something about punbb please send a message with the link on Stage6
41 2007-09-15 13:01
Re: HELP! Referal Mod issue (3 replies, posted in PunBB 1.2 troubleshooting)
sure post those places where the referal codes are and ill look at it
42 2007-09-15 10:23
Re: HELP! Referal Mod issue (3 replies, posted in PunBB 1.2 troubleshooting)
Find the referal area in your profile.php and then add this before the code that lets you see the referals count because you probably want to allow them to see the link so that they can give it to others (both on view and edit profile)
Add this before:
<?php
if ($pun_user['g_id'] == PUN_ADMIN)
{
?>
and after the referal things are done add this
<?php
}
?>
That should work and then only the main admin will be able to see how many referals the person have
43 2007-09-14 09:24
Topic: Punres messed up? (0 replies, posted in PunBB 1.2 discussion)
Anyone know whats up with Punres? Style, files and error id: "bad_httpd_conf" message
Was just looking on a thread there and then it wasn't working anymore..
44 2007-09-11 07:04
Re: Pun Demo - A place for checking 'live' mods/projects out... (BETA) (30 replies, posted in PunBB 1.2 discussion)
yea, only seen pictures of it
But do you know if it will be worked on?
And if you need coders or testers I can help
45 2007-09-11 06:58
Re: Pun Demo - A place for checking 'live' mods/projects out... (BETA) (30 replies, posted in PunBB 1.2 discussion)
So whats happening with this project? I see that it will arrive shortly, but want to know if there is being done anything on it
46 2007-09-10 15:30
Re: Restrict access to profile pages (14 replies, posted in PunBB 1.2 troubleshooting)
I havn't renamed my pages but I send the guests back to the index page with
header('Location: index.php')
So they won't even get a message that they can't access this page..
47 2007-09-10 12:34
Re: Restrict access to profile pages (14 replies, posted in PunBB 1.2 troubleshooting)
@ Thomas
Only removing the link from guest view won't stop them from accessing the user list or profile page..
You need an if ($pun_user['is_guest']) statement on both User List and Profile to make sure that they don't access the page.
48 2007-09-09 19:53
Topic: PunBB-Norge (Norwegian PunBB Support Forum) (0 replies, posted in PunBB 1.2 show off)
I wanted to create something for the Norwegian (Swedish and Danish are also allowed ) PunBB user.
Its mainly for those that aren't so good in English, so that they also get get some help with their stuff.
I also want to keep it basic and easy like PunBB and Punres.
Its not so much or many things there right now, but thats because I fixed the site only a few days ago.
I only have a subdomain for it so far, but once its up and running and I see that people are using it I will buy one
Oh and any help with getting more people on their is just great
49 2007-09-09 12:54
Topic: Show message if user isn't from that country (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
I need to some with getting a message to be shown if a user isn't from Norway, Sweden or Denmark
Something like this:
<header>
<navlinks>
<if user isn't nor, swe or dk show this message>
<announcement>
That way I can tell the other users that isn't from those countries that this forum only support Norwegian, Swedish and Danish.
I know that I have to use HTTP_ACCEPT_LANGUAGE but I have NO idea on how I can get this to work or even if it work..
Any help would be great!
Oh, I have also looked on [Punres Wiki] but I don't understand much of it
Thank You,
PhaxeNor
50 2007-09-09 09:52
Re: users rights on part of the forum (1 replies, posted in PunBB 1.2 modifications, plugins and integrations)
Create your groups in the "user group" menu
Then go to your forum tab and edit/add your forums and then remove Read Forum, replies and topics for those/that group you want to do it for...