quick short post. in the hooks cache, what is $ext_info for?
27 2008-03-15 21:46
Re: Hook requests (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 2008-03-15 12:13
Re: Hook requests (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.
29 2008-03-14 23:24
Re: Nav Links and moderator bug (2 replies, posted in PunBB 1.3 troubleshooting)
If anyone is still lookin at this bug, it was fixed with Changeset 1554
30 2008-03-12 19:58
Re: Wish list (26 replies, posted in PunBB 1.3 troubleshooting)
GPS coordinate input + link to see all my friends on google maps
im curently working on a google maps extension.
31 2008-03-11 20:21
Re: important question (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
32 2008-03-09 19:37
Re: [Bug]: no headers in messages in install.php (8 replies, posted in PunBB 1.3 troubleshooting)
for 1.3 there is only one languages file. once its released other languages will be made.
34 2008-03-08 21:02
Topic: Google Maps and Css (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.
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>'
35 2008-03-01 02:01
Re: [Extension release] Refresh hooks (6 replies, posted in PunBB 1.3 extensions)
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>'
36 2008-02-22 21:29
Re: Profile > Administration - Moderators (5 replies, posted in PunBB 1.3 troubleshooting)
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
37 2008-02-22 14:11
Re: Profile > Administration - Moderators (5 replies, posted in PunBB 1.3 troubleshooting)
i posted this a while ago and got no responces...
38 2008-02-20 21:34
Re: pm extension (7 replies, posted in PunBB 1.3 extensions)
an official extension, probly after 1.3 out of beta
39 2008-02-18 05:45
Re: Extension - extract_elements (16 replies, posted in PunBB 1.3 troubleshooting)
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.
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.
40 2008-02-17 20:08
Re: Extension - extract_elements (16 replies, posted in PunBB 1.3 troubleshooting)
well make sure your html has the correct name tag. should look something like
name="form[new_field]"
41 2008-02-17 19:44
Re: Will extensions be multilingual? (6 replies, posted in PunBB 1.3 troubleshooting)
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
42 2008-02-17 19:39
Re: Extension - extract_elements (16 replies, posted in PunBB 1.3 troubleshooting)
this is how i did it
$form['new_field'] = $_POST['form']['new_field'];
43 2008-02-16 17:28
Re: Stop extension installation? (2 replies, posted in PunBB 1.3 troubleshooting)
that should work.
44 2008-02-16 12:47
Topic: Stop extension installation? (2 replies, posted in PunBB 1.3 troubleshooting)
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 2008-02-15 16:52
Re: Hook requests (151 replies, posted in PunBB 1.3 extensions)
Those are examples of modifications that you want ported to extensions, not hooks.
46 2008-02-15 14:55
Topic: Nav Links and moderator bug (2 replies, posted in PunBB 1.3 troubleshooting)
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 2008-02-14 19:13
Re: Change registration form (7 replies, posted in PunBB 1.2 discussion)
it isnt moding profile.php but moding register.php
48 2008-02-13 02:16
Topic: [fixed] Signatures bug. (0 replies, posted in PunBB 1.3 troubleshooting)
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 2008-02-13 01:19
Re: Hook requests (151 replies, posted in PunBB 1.3 extensions)
Hooks for adding permissions in admin/forums.php.
preferably looking at this section
// Check if the new settings differ from the old
50 2008-02-11 12:40
Re: Hook requests (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