1

(11 replies, posted in PunBB 1.3 additions)

gynter wrote:

If search removes the header, how can I exit from search? Maybe making a Back/Cancel button/link would be a good idea.

Your browser has a back button tongue The search results page leaves in the quick jump menu though that is actually a board specific setting and not everyone will have that turned on.

Maybe I went a little overboard hiding some of the necessities. I'll take another look at the skin this weekend and consider adding parts back in. For now though you can edit Dark-Pun.css:

/* Search
--------------------------------------------------------------*/

#brd-search #brd-head,
#brd-search #brd-visit,
#brd-search #brd-main #brd-crumbs-top,
#brd-search #brd-main #brd-crumbs-end,
#brd-search #brd-about,
#brd-search #brd-main .ct-box {display:none;}

Removing

#brd-search #brd-head,

from the above should do it smile

Would you mind posting a link to your site, or PM'ing me with the link?

This extension doesn't effect any links in your forums navlinks so not quite sure why the login link would suddenly disappear hmm Shoot me a link and I'll see what I can do

3

(26 replies, posted in Programming)

(Sorry if some have been mentioned already, I've been meaning to post this for a while. Just by chance someone else bumped this 2 year old topic)

Firefox

Firefox - Easier to design with a copy of Firefox at hand ~ mainly thanks to its plugins. Get your site looking correct in Firefox and fix the IE bugs later wink

Firebug - Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page.

Web Developer Addon - Adds a toolbar with various web developer tools.

Useful Web 2.0 Resources

Badges - Quickly knock out some Web 2.0 style badges with this useful little online tool.

Stripe Generater - Another useful online tool, this one geared towards those who can't create seamless striped background images lol

Background Patterns Generater - Create a variety of repeating background patterns easily. Experiment with pictures, colors, textures and transparency to get best result.

Inspiration

CSS Garden - Fire through this demonstration of what can be accomplished visually through CSS-based design. Every page uses the same HTML structure with often-creative CSS providing the unique design.

Smashing Magazine - A frequently updated blog showcasing some outstanding design work, including web, graphic, print and more.

Fine Tuning

.htaccess - Fine tune your server with this excellent collection of .htaccess tricks. Covering everything from password protecting directories, preventing image and file hotlinking, preserving bandwidth, and even forcing a users browser to download media files instead of streaming.

Dont want to take your thread off topic Garciat, move this is you wish, but I managed to get what I was looking for working smile Using 1.2, the below will show latest topics on the users profile instead of latest posts. I still haven't got the hang of making extensions but maybe this can easily be ported over also, or added as an option to this extension?

The original query I used:

<?php

$result = $db->query('SELECT * FROM '.$db_prefix.'topics WHERE poster = \''.pun_htmlspecialchars($user['username']).'\' AND forum_id = x ORDER BY last_post DESC LIMIT 6') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
while($cur_topic = $db->fetch_assoc($result))

{   
?>

<li><a href="viewtopic.php?id=<?php echo $cur_topic['id']; ?>"><?php echo $cur_topic['subject']; ?></a></li>

<?php
}
?>

This matches the poster name in the *topics field to that of the username.

The query below is thanks to MattF, improving the query by using User ID instead of usernames:

<?php
$result = $db->query('SELECT DISTINCT t.id, t.subject, t.poster FROM '.$db_prefix.'topics FROM '.$db_prefix.'topics AS t LEFT JOIN '.$db_prefix.'posts AS p ON t.poster=p.poster WHERE p.poster_id= \''.intval($user['id']).'\' AND forum_id=x ORDER BY t.id DESC LIMIT 6') or error('Unable to fetch post info', __FILE__, __LINE__, $db->error());
while($cur_topic = $db->fetch_assoc($result))

{   
?>

<a href="viewtopic.php?id=<?php echo $cur_topic['id']; ?>"><?php echo pun_htmlspecialchars($cur_topic['subject']) ?></a>

<?php
}
?>

5

(11 replies, posted in PunBB 1.3 additions)

Sorry about the delay in getting the new version posted. I've updated the download with the fixes. If you have already installed and edited the skin please apply the below fixes:

Announcement Box Bug

Open: style/Dark-Pun/Dark-Pun.css

Find: Line 176

#brd-announcement {
    width:800px;
    padding: 0.6em 1em;
    margin: 2em auto -3em auto;
    border-width:1;
    }

Change To:

#brd-announcement {
    width:780px;
    padding: 0.6em 1em;
    margin: 2em auto 2.4em auto;
    border-width:1;
    }

and... Post Status Indicator Colors

Open: style/Dark-Pun/Dark-Pun_cs.css

Find: Line 411

/* Status indicators
----------------------------------------------------------------*/

.brd .main-content .main-item .icon {
    border-color: #EDF1F5 #DDE0E4 #C6CBD3 #BABFC6
    }

.brd .main-content .redirect .icon {
    border-color: #f4f4f4 #f4f4f4 #f4f4f4 #f4f4f4
    }

.brd .main-content .sticky .icon {
    border-color: #D7E5F3 #C3CFDC #9FB3C7 #90A2B4
    }

.brd .main-content .closed .icon {
    border-color: #ACACAC #979797 #898989 #7A7A7A
    }

.brd .main-content .sticky .closed {
    border-color: #D7E5F3 #C3CFDC #898989 #7A7A7A
    }

.brd .main-content .new .icon {
    border-color: #2B75AD #235E8C #1F537B #266799
    }

Change To:

/* Status indicators
----------------------------------------------------------------*/

.brd .main-content .main-item .icon {
    border-color: #FBFBFB #FBFBFB #FBFBFB #CCCCCC
    }

.brd .main-content .redirect .icon {
    border-color: #FBFBFB #FBFBFB #FBFBFB #000000
    }

.brd .main-content .sticky .icon {
    border-color: #FBFBFB #FBFBFB #FBFBFB #666666
    }

.brd .main-content .closed .icon {
    border-color: #FBFBFB #FBFBFB #FBFBFB #999999
    }

.brd .main-content .sticky .closed {
    border-color: #FBFBFB #FBFBFB #FBFBFB #666666
    }

.brd .main-content .new .icon {
    border-color: #FBFBFB #FBFBFB #FBFBFB #333333
    }

Save & Upload.

Preview smile

Just to confirm I have tested this skin in the following browsers:

Firefox 3.0.5
Internet Explorer 6
Opera 9.63
AOL Explorer 1.5001.7.1
Google Chrome 1.0.154.43

If anyone has any other problems or finds a bug then please post up here and I'll get on it asap cool

Vanslyde wrote:

And what about 1.2.* forums that contain modifications?

Can we upgrade to 1.3 as well without loosing, say, our calendar, PM feature, mark as read mod etc?

Since it's my understanding that there is no 1.2.21 to 1.3 hdiff this would mean that it cannot be done.. am I right?

All modifications will be lost and all changes to your style will be lost. Your style will need recreating from scratch.

Some of the old 1.2 modifications are now extensions for 1.3 but not all of them have been updated. Make sure all of the modifications you currently use on 1.2 are already available for 1.3 before upgrading, if they are a necessity for your board anyway (or unless you dont mind upgrading some yourself).

Taking a look at the code now big_smile Many thanks

8

(14 replies, posted in Discussions)

Sounds good. I think this is on-topic: I'd be interested in having access to a paid support forum where I can post my extensions/mods/styles for inspection by other developers. I'd happily pay a monthly fee, or on a per-request basis, for my own code to be (somewhat thoroughly) looked at and have suggested improvements offered smile

Also please can someone clarify the license terms from a buyers perspective. If I'm being charged $500 for a major extension by another dev I'll be pretty ducked off if the developer then releases it for free the very next day lol

9

(4 replies, posted in Programming)

I'm not sure I understand the question hmm A normal tooltip would be added to the <a> tag as far as Im aware though:

<a href="http://rapidshare.com/files/173512098/divx_bbcode_punbb.rar" target="_blank" title="Rapidshare RAR"><img src="http://keydogbb.info/img/new_images/Download.png"></a>

Quickly tried it on a .htm page and the tooltip shows up when you hover the image. I cant see why it would be different for an XML file sad

10

(2 replies, posted in General discussion)

eoinie wrote:

whereas it shows up in the dropdown menu in Settings, when I click to save changes it is not applied. Any idea why

Are you changing the style in your Profile or under the Administration area? My guess is you are changing the default boards style which is why it doesnt change after updating ~ if you logout you should see your new style smile

I have a client having the same issue using an iMac running OS 10.5.6 and Firefox 3.0.5.

PunBB version is the latest 1.3.2 smile

12

(13 replies, posted in PunBB 1.3 additions)

Cool idea, heres some other styles I released if you want to add them too. Screenshots/download links can be found in the threads

Oxygen Widescreen
Xmas Theme
Nature Widescreen

smile

13

(11 replies, posted in PunBB 1.3 additions)

Sorry about that I'll get this fixed first thing tomorrow, its nearly 3am over here so can't do it right now. I actually noticed the "new post" icon is the default Oxygen blue colour so I'll need to change that also.

I checked the skin in Firefox 3 and IE6 and it looked correct in both. Seems I just overlooked a few things sad

14

(31 replies, posted in Feature requests)

Are you thinking of making this into an extension ( big_smile ), or wanting to discuss having this in the core? ( hmm  )

15

(11 replies, posted in PunBB 1.3 additions)

I made the background pattern using an online tool lol I was impressed by the tool so thought I'd keep the pattern in. Easy enough to change though, just create another pattern and save it as background.jpg over the original one included with the style smile

If others agree about the header being too large I can always make another version with this reduced. The titles font size would need decreasing and the margin for the navlinks would need recalculating. Easy enough to do if people want it though cool Cheers garciat, will need to catch ya on MSN soon.

16

(11 replies, posted in PunBB 1.3 additions)

http:///www.willvilliers.com/punbb-1.3-skins/style/punbb-skin-style.jpg

Preview or Download

Let me know of any bugs/problems smile Thanks and enjoy.

(oh and apologies if the preview URL has spam/porn posted on it. I try to check it daily but sometimes forget. Just don't open any threads that aren't started by 'downliner' to be safe.)

17

(4 replies, posted in PunBB 1.3 additions)

This is also being asked in this thread. The solution that worked for me which you can try is to add the following to your .css file:

#brd-postedit #fld1,
#brd-postedit #fld2,
#brd-postedit div.longtext #fld3,
#brd-post #fld1,
#brd-post #fld2,
#brd-post div.longtext #fld3 { width:90%; }

That should change the size of the input fields on the "Post new topic" and "Edit topics" pages smile

18

(5 replies, posted in Discussions)

I've been getting help from Garciat to get the port of the View/Hide Categories mod working as an extension. I'm just having difficulty with the Admin side of things but hopefully get it sorted soon for you to try out smile

$cats = explode

lol Brilliant

19

(17 replies, posted in PunBB 1.3 extensions)

iniara wrote:

I've used it in some other websites but the problem is that it converts every link into a play button. It would be really great to create an extension that converts every link to an mp3 file into a playable song. That way you can post any mp3 link and it's playable.

What I like about using this little player is that it's customizable and ultra simple.

Thats what this extension does. It finds any links on your page to .mp3 and makes it playable, automatically adding a small http://www.willvilliers.com/playbutton.jpg play button next to each link. When an mp3 is playing you can pause it using the same button.

If its the slideout tray itself that you don't like you could probably hide the whole thing using a little simple CSS. Install the extension and then try adding:

#ymp-player div, #ymp-tray div {display:none!important}

to the bottom of your CSS file. You'll just be left with the play/pause buttons next to each link but not the actual player itself.

20

(17 replies, posted in PunBB 1.3 extensions)

See this page and look for the mp3 player in the bottom left corner of your screen, or click one of the three play buttons next to each song on the page to open the player. The adverts within the mp3 player are hidden on the actual extension.

Screenshots below of it in action on one of my 1.2 installs:

Closed
http://www.willvilliers.com/hidden.jpg

Open
http://www.willvilliers.com/open.jpg

Playlist
http://www.willvilliers.com/playlist.jpg

I'm still not getting it it seems. I've only just learnt the basics of PHP and finding the jump from modding 1.2 to 1.3 more difficult than I originally thought it would be. These hooks give me a headache sad

In the above example of:

$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',

is it possible to add into the select, eg:

$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, c.something f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',

I need documentation or a paid helper/support? cool

Many thanks, I understand how it works now big_smile

I'm needing to edit a query on index.php but don't understand how I add my additional code into the query? I believe this is possible so if someone can explain how it works I'll figure the rest out for myself smile

Additional code I need to add is highlighted red.

($hook = get_hook('in_main_output_start')) ? eval($hook) : null;

// Print the categories and forums
$query = array(
    'SELECT'    => 'c.id AS cid, c.cat_name, f.id AS fid, f.forum_name, f.forum_desc, f.redirect_url, f.moderators, f.num_topics, f.num_posts, f.last_post, f.last_post_id, f.last_poster',
    'FROM'        => 'categories AS c',
    'JOINS'        => array(
        array(
            'INNER JOIN'    => 'forums AS f',
            'ON'            => 'c.id=f.cat_id'
        ),
        array(
            'LEFT JOIN'        => 'forum_perms AS fp',
            'ON'            => '(fp.forum_id=f.id AND fp.group_id='.$forum_user['g_id'].')'
        )
    ),
    'WHERE'        => ''.$more_sql.' AND (fp.read_forum IS NULL OR fp.read_forum=1)',
    'ORDER BY'    => 'c.disp_position, c.id, f.disp_position'
);

($hook = get_hook('in_qr_get_cats_and_forums')) ? eval($hook) : null;

When I use this edited code in index.php it works as intended, I'm just unsure about how to replace the original core query with my edited version using manifest.xml?

24

(17 replies, posted in PunBB 1.3 extensions)

SkyLine wrote:

oh yea ! Its working perfect
thanks a lot

No prob smile If you want the MP3 Player to also show the album artwork for each MP3 you can do the following BBCode:

[url=http://www.example.com/song.mp3]Song Title[img]http://www.example.com/album_art.jpg[/img][/url]

The problem with this method is that the image is shown in the post itself also, it should really be hidden. The next release of this extension will have it taken care of the problem smile

I didn't realise you could highlight only the text you wanted to quick quote lol Hiding the button wont be much use I have to agree.