quick short post. in the hooks cache, what is $ext_info for?

27

(151 replies, posted in PunBB 1.3 extensions)

Well i have a function that pulls info from the user database. if its run before the database is updated, it generates old data. i need it run when ever a profile is updated. i cant think of any other place to do this.

28

(151 replies, posted in PunBB 1.3 extensions)

how about a hook after a profile has been updated, but before the redirect? this same scheme could be added else where, maybe.

If anyone is still lookin at this bug, it was fixed with Changeset 1554

30

(26 replies, posted in PunBB 1.3 troubleshooting)

GernotFrisch wrote:

GPS coordinate input + link to see all my friends on google maps

im curently working on a google maps extension.

31

(17 replies, posted in PunBB 1.3 troubleshooting)

I play the game World of warcraft, and blizzard (the makers) always say "soon", so as a joke someone made a funny, fake wiki page about the word "soon".

soo all i have to say is... Punbb will be out Soon  tongue

for 1.3 there is only one languages file. once its released other languages will be made.

33

(2 replies, posted in PunBB 1.3 troubleshooting)

i think i found out whats wrong, and its not punbb's fault. i believe that when the bubble is created by the script it sets the height of depending on the height of the outputed html, -THEN- the css effects the html. that is why i have that big block of blank space below it.

http://img301.imageshack.us/img301/3466/usermapbugwithoutstyleji1.th.png http://img80.imageshack.us/img80/1825/usermapbugwithoutclassgg4.th.png

34

(2 replies, posted in PunBB 1.3 troubleshooting)

OK so im trying to remake the User maps into a extension for 1.3. Iv got it prety much all down cept for the map that shows all users. When i open the lil bubble for user info i get a lot of extra padding at the bottom, and i think its got something to do with punbb's css. Can anyone help track down this bug?

I think the below pictures will help explain my problem.

The Left one is with the board styles on
The Right one is with the board styles off.
http://img301.imageshack.us/img301/5810/usermapbugwithstylexf1.th.png http://img301.imageshack.us/img301/3466/usermapbugwithoutstyleji1.th.png

and this is the html code i use in those bubbles

'<div class="user">'+
    '<h4 class="user-ident">'+avatar+'<strong class="username"><a href="<?php echo $base_url?>/profile.php?id='+markers[i].getAttribute("id")+'">'+markers[i].getAttribute("username")+'<\/a><\/strong><\/h4>'+
    '<ul class="user-info">'+
        '<li class="title"><span><strong><?php echo $lang_profile['Title']?><\/strong> '+markers[i].getAttribute("title")+'<\/span><\/li>'+
        '<li><span><strong><?php echo $lang_profile['From']?><\/strong> '+markers[i].getAttribute("location")+'<\/span><\/li>'+
        '<li><span><strong><?php echo $lang_profile['Registered']?><\/strong> '+markers[i].getAttribute("registered")+'<\/span><\/li>'+
        '<li><span><strong><?php echo $lang_profile['Posts']?><\/strong> '+markers[i].getAttribute("posts")+'<\/span><\/li>'
        +gender+
    '<\/ul>'+
'<\/div>'

delete that php file of yours and change the link in the hook to:

'<a href="'.$base_url.'/admin/extensions.php?section=manage&install='.$id.'">Reinstall</a>'

well i thought it was similar, and what i think qubertman is trying to say is that if you don't have edit profile permissions, there is no admin tab to be able to ban the user. it seems that if you dont have edit profile permissions you cant do anything on the profile page

i posted this a while ago and got no responces...

http://punbb.org/forums/viewtopic.php?id=18418

38

(7 replies, posted in PunBB 1.3 extensions)

an official extension, probly after 1.3 out of beta

qubertman wrote:

When the checkbox is unchecked and when saving, then the "Undefined index" error.

yea i forgot check boxes return null when unchecked. when i had to do this, i was using a drop down list so it would always return 0,1, or 2.

Smartys wrote:

Actually, I was thinking:

$form['new_field'] = isset($_POST['form']['new_field']) ? '1' : '0';

yea id say that is the best way to do it.

well make sure your html has the correct name tag. should look something like

name="form[new_field]"

similar to what kierownik said, with my extentions i added to the hook "co_common" (seems to be the first one found)

if (file_exists(PUN_ROOT.'extensions/<extension>/lang_'.$pun_user['language'].'.php'))
    require PUN_ROOT.'extensions/<extension>/lang_'.$pun_user['language'].'.php';
else
    require PUN_ROOT.'extensions/<extension>/lang_English.php';

also in the install block i add this

if (!file_exists(PUN_ROOT.'extensions/<extension>/lang_'.$pun_user['language'].'.php'))
    $notices[] = 'This Extension does not support your current language and will use the english one.';

replacing <extension> with your extension name of corse
With this scheme you don't have multiple folders with one file in them

this is how i did it

$form['new_field'] = $_POST['form']['new_field'];

that should work.

Is it possible to stop the install? Like i check if a database table or field exists, can i stop the installation of the extension if one does?

45

(151 replies, posted in PunBB 1.3 extensions)

Smartys wrote:

Those are examples of modifications that you want ported to extensions, not hooks.

ok so i set up a fake account to do some testing, set him up with being a moderator, and moderating privileges. The bug iv found is with the Administration link at the top of the page.

When im on the index page the "Administration" link is there.
When im viewing a forum that i have moderator privileges on, the "Administration" link is there.
When im viewing a forum that i do not have moderator privileges on, the "Administration" link is not there.

47

(7 replies, posted in PunBB 1.2 discussion)

it isnt moding profile.php but moding register.php

This is a lil weird. i tried tracking it down and i cant seem to find whats causing it, im assuming its cause by the parser. but only when im logged images are turn into urls. i don't know if its all bbcode, but i haven't tested it in topic posts.

I have the same signature as i do here, and it returns this when im logged in

Gizzmo<br /><br />
Save a wyvern, ride a gyrocopter. Destroy the environment in style.<br />
<a href="http://www.wowarmory.com/character-sheet.xml?r=Lightbringer&n=Huntix"><a href="http://img292.imageshack.us/img292/8329/huntixsigkl2.png"><image></a></a><br />
<a href="http://www.wowarmory.com/character-sheet.xml?r=Lightbringer&n=Convertibull"><a href="http://img220.imageshack.us/img220/1372/convertibullsigtf2.png"><image></a></a>

edit:ok i just found out the problem. some how i unchecked 'Show images in user signatures.' in my profile. no bug here, just human error

49

(151 replies, posted in PunBB 1.3 extensions)

intedinmamma wrote:

Hooks for adding permissions in admin/forums.php.

preferably looking at this section

// Check if the new settings differ from the old

50

(151 replies, posted in PunBB 1.3 extensions)

A hook in post.php before line 190 and edit.php before line 127 would be nice. To be able to add in our own $errors.

oh and maybe a hook after line 272 in admin/groups.php in case we added in our own group options