76

(17 replies, posted in PunBB 1.3 extensions)

KeyDog wrote:

excellent. noticed at the mom if I uninstall all the quotes are gone - when just upgrading that is a bit frustrating. it all always disappears right?

yeah its all gone, maybe i should have a look and see if there is some sort of upgrade tag in manifest.xml smile

KeyDog wrote:

want a set running at the top and a different set running at the bottom
is that hard to implement for you?

i'll add an optiosn page with a on/off function smile

nops not at all, i,ll create a second ta forum_qq_2 for the second quote smile


KeyDog wrote:

then it would also be good if one could set ON/OFF in the actual set of quotes - at the moment if I want them to go away I have to uninstall and loose all right?

77

(17 replies, posted in PunBB 1.3 extensions)

KeyDog wrote:

*box.sk  brings back memories big_smile

lo good or bad?

KeyDog wrote:

question: do you plan on adding EDIT quote function to admin section ?

yeah, in a while smile

78

(3 replies, posted in PunBB 1.3 extensions)

hi,

does manifest.xml allow some sort of extension dependencies?

i mean for example i'm craeting a verry simple extension called prototypejs which will add the prototype and script a coulus js librarys to punbb.

now i'm creating a bunch of other extensions that will require this extension to be installed, so is it possible to define this in manifest.xml, or should i just do the checks during the install?

althought it would be cool to have a < dependent > tag in the manifest file smile

79

(17 replies, posted in PunBB 1.3 extensions)

http://neworder.box.sk/forum-new/index.php <= an example smile

80

(17 replies, posted in PunBB 1.3 extensions)

ah you have to add <!-- forum_qq --> to the template (main.tpl) at the position you want it to show smile

81

(17 replies, posted in PunBB 1.3 extensions)

i think you where a little bit to fast smile

i just tested it (with the dloaded version) and it worked, i only hit commit when i created this post, so try and redload it smile

be sure to have Revision 61

82

(17 replies, posted in PunBB 1.3 extensions)

Version1.0 is released

http://punbb.informer.com/unofficial/pu … /qq/qq.tar

83

(17 replies, posted in PunBB 1.3 discussion)

KeyDog wrote:

but don't you just want to publish something with less features and have people test it and give you feedback. of course if you can add all those features and put it all in version 1.0 all the better. but it's hard to get things right from start?
always helps me to see something in action and then by using it notice what else I'd need.

i have no use for this extension if it doesn't has all these features ... so why wouldi code something that i can't use?

84

(17 replies, posted in PunBB 1.3 discussion)

mine will be public accessible smile

but there are a couple of others that are first on my todo list
1- the qq must be finished
2- the links db must be finished

also here is an overview of the features i would like to add (maybe we can add more if others want more)
1- simple gallery with admin page
2- users can post images to this gallery
3- option to allow posting to the gallery without mod approval
4- forum_gallery_random tag for the templates, displays a random (approved) image from teh gallery
5- forum_gallery tag for the templates, displays the latest gallery adition
6- main gallery page where all images can be viewed

anything else?

MattF wrote:

Will you people please start sanitising your code. There isn't a $forum_db->escape in sight there, and I'm assuming from that omission that little else input sanitisation and verification is done either. Code correctly from the start.

well i'm planning it smile


together with the install and unstill part of the manifest.xml, it still has to be done smile (probebly today)
its still not released smile

86

(17 replies, posted in PunBB 1.3 discussion)

lol i,m planning one to :0

i'm currently integrating my whole site into punbb, need to integrate a links section, a gallery and some sort of article syste smile

Garciat wrote:

Add the URL scheme for your page through 'co_modify_url_scheme'

$forum_url['your_admin_page'] = $ext_info['url'].'/your_admin_page.php';

$ext_info['url'] gives the full forum url, so its not usable with forum_link

thats exactly what i'm doing now smile

yeah well i first of all want this to be an admin page that mods can access to (settings.php is limited to admins only

secondly, i want to create a main header (next to extensions) and not a subheader ...

a simple subheader is pretty easy, but a main header is a bit harder i think

nvm its solved, but i'm still creating seperated admin page for my admin commands,

what hook can i use to create new admin pages?

yonash wrote:

but prefix should be added automatically until disabled by

well yeah i thought so ... but this doesn't work

Rich Pedley wrote:

Why create a whole new admin page? couldn't you have used the hooks in place?

hmm, well its easyer smile

i ahve been trying todo this but could not find the right hooks for this ...

what i did

1- modifyed url scheme (co_modify_url_scheme)
2- added main admin link (ca_fn_generate_admin_menu_new_link)
3- generated sub admin links (ca_fn_generate_admin_menu_new_sublink)

but then i got stuck smile

when an extension uses the query builder engine, how do i use the automatic adding of the db prefix?

i have to manually add the forum_ prefix otherwise the code below doe not work ...

$query = array(
                'INSERT'        => 'txt, author',
                'INTO'          => 'forum_qq',
                'VALUES'        => '\''.$_POST['txt'].'\', \''.$_POST['author'].'\''
        );

then second question, i hqve a new admin php file, should my extension move this (on install) to the admin dir or should it stay in the extensions dir?

i'm starting an extension that will support these protocols for creating

- topics
- posts

and later maybe users to

anything else required?

is there a standard thats already set for xml in punbb?

95

(82 replies, posted in PunBB 1.3 extensions)

Rich Pedley wrote:

I tend to only write things for mysql - but I believe you can alter it by changing line 157 from mysql_data_seek to mysqli_data_seek

hmm, maybe you should add a check in your install warning users that use anotehr db engine then mysql ...

or use the db builder for the querys

96

(17 replies, posted in PunBB 1.3 extensions)

i'm currently working on a Quotable Quote extension

Currently the basis is created for an admin interface and the display part is ready ...

so what would you guys like to see in it?

Currently the idea is simply replace the <!-- forum_qq --> part in the template by a display of an random QQ from the db and of course an admin interface for it smile

Any config vars required? Anything else on the wishlist?

preview:
user: cereal
pass: test
http://cereal.box.sk/punbb/punbb-1.3.2/index.php

here is your problem smile

[expiration_time] => 0

you could check whats in $_COOKIE array?

then do a printout off $cookie array and at the same time the time() value and a printout of $forum_user and give them smile

What is csrf_token on the forums/login.php form?

thats a token to limit csrf attacks smile (http://en.wikipedia.org/wiki/Cross-site_request_forgery)

inside cookie_login add a print_r($forum_user) before the folowing lines (in your test script)

// If this a cookie for a logged in user and it shouldn't have already expired
        if (intval($cookie['user_id']) > 1 && intval($cookie['expiration_time']) > $now)
        {

and

// We now validate the cookie hash
                if ($cookie['expire_hash'] !== sha1($forum_user['salt'].$forum_user['password'].forum_hash(intval($cookie['expiration_time']), $forum_user['salt'])))
                        set_default_user();

and

// If we got back the default user, the login failed
                if ($forum_user['id'] == '1')
                {

and let me know from what point on your a guest user, this will help us narow down the problem.

Maikel

well the basic problem with this is that i need diff users in diff timezones to test it smile