Yeah, that's true... Still, it works very well in a browser search box. I usually creates one for all sites I visit frequently, and with sites like http://www.php.net/ , it's pretty much invaluable smile

Would be nice to be able to make linking search results in PunBB a bit easier though, even if only for use when responding to frequently asked questions...

pogenwurst wrote:
Apupv wrote:

The 6th line with the great Search function.
http://punbb.org/forums/search.php?search_id=748790104

Info wrote:

Your search returned no hits.

wink

hemnf: here you go.

this might be a little off-topic, but it is actually possible to link search results, just not the way Apupv did it smile

Example:
http://punbb.org/forums/search.php?acti … rch=Submit

I actually have a PunBB search box on a toolbar in my browser wink

203

(8 replies, posted in PunBB 1.2 troubleshooting)

A couple of tips:

1. If your base url is set to www.domain.com, add the following to your .htaccess:

Options +FollowSymLinks 
RewriteEngine On
RewriteBase / 
RewriteCond %{HTTP_HOST} ^domain.com$ [NC] 
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]

This will help prevent lots of problems smile

2. Change line 139 of include/functions.php from:

//    @header('P3P: CP="CUR ADM"');

to

    @header('P3P: CP="CUR ADM"');

204

(8 replies, posted in PunBB 1.2 troubleshooting)

More often then not, it's related to the cookie path specified in config.php.

I just have to add, it seems like it's a lot faster then the older versions as well, believe it or not! Can't wait for it to reach final smile

Changelog (Windows)
Download

Also available as MAC + LINUX builds.

And why am I posting this? Well, there are just so many improvements in the browser, that you simply need to see it to believe it wink

I've just barely tested it, as it was released just a short while ago, but here are what I noticed immediately:

* Built-in ad-blocking!
* Bittorrent support!
* User-specific settings (CSS, Cookies etc.)
* Customize search dialogues from within the browser.
* WIDGETS...In a browser?! Yep, it's there wink

Oh, here's a little more informative summary: Link

I'm a happy, happy man today big_smile

207

(14 replies, posted in PunBB 1.2 bug reports)

I can assure you, there information you're getting from phpinfo, have absolutely nothing to do with PunBB. If you don't belive it, upload a new file to the server, with the following info:

<?php
phpinfo();
?>

Nice to see a pretty edit of my skin! Your site always looked good though...

...which reminds me, I really need to get the final version of BiB posted wink

I doubt that will make it in, until after 1.3 is released...

The following code does work:

$fora_id = array(1, 2, 3);
if (in_array(intval($_GET['id']), $fora_id) && $pun_user['num_posts'] < 50 && $pun_user['g_id'] > PUN_MOD)
        message($lang_common['No view']);

Add it to viewforum.php, after the inclusion of common.php


Also, to prevent displaying topics in a certain forum, for users with below 50 posts (will also prevent people from giving out direct links to topics, to users will < 50 posts), open viewtopic.php and find on line: 109

$is_admmod = ($pun_user['g_id'] == PUN_ADMIN || ($pun_user['g_id'] == PUN_MOD && array_key_exists($pun_user['username'], $mods_array))) ? true : false;

Below, add:

$fora_id = array(1, 2, 3);
if (in_array($cur_topic['forum_id'], $fora_id) && $pun_user['num_posts'] < 50 && $pun_user['g_id'] > PUN_MOD)
    message($lang_common['No permission']);

I was working (and and will continue to do so for 2 more months) for a company named Sykes, on contract by HP MS (Hewlett-Packard Managed Services). Not exactly the best job in the world, but it did pay the bills. I don't really feel that it's that bad to have lost the job itself, but it's just that it's always hard having to move away... Still, they did promise to give me a good resumé, so it will probably turn out ok in the end...I hope smile

I'll do my best to have it ready for 1.3 as well...provided I can still access the internet at that time. Just got fired from my job for the last 4 years yesterday, so I'm not quite sure what's going to happen yet sad

habana wrote:

Sorry for this useless post, CodeXP.

I will read full topic before submitting silly messages.
I will read full topic before submitting silly messages.
I will read full topic before submitting silly messages.
I will read full topic before submitting silly messages.
I will read full topic before submitting silly messages.
...

Thanks "quand même" from paris smile

Hehe, don't worry about it wink

214

(14 replies, posted in Feature requests)

You could always just try adding somthing like following to the <head> of the main.tpl:

<base href="http://www.domain.com/somefolder/" />

Then all relative URI's will use the above URL as a base. Quick & simple, though I think I can see a few situations where this could case a few problems (mainly the referer checks).

@Rickard: I'll do so, but I think it would be best with some more feedback first from those testing it, just so that there won't be any nasty surprises wink

@habana: Well, although not exactly the same, that's kinda what the backup/restore function does really...

Thanks Rickard, I'll be sure to do so smile

I've just prepared a new archive of version 1.1 of this plugin. It works fine now, so I decided to release it now. The code could still use some cleanup, but I don't think there should be any (serious) bugs.

Some changes from v1.0:
* Backup & restore function!
* Improved navigation in the file browser.
* Ability to set allowed files to edit, even if the file extension is disallowed (example: If you've disabled editing of .php files, you could, let's say, allow editing to the config.php file). See line 47 if you want to add file to the allowed array.
* Several minor & not-so-minor changes to the code.

Installation:
1. Extract the contents of the archive to your PunBB folder.
2. Set write permissions to the ./plugins/AP_Text_Edit_Backups/ folder (chmod 0777).
3. Add the contents of the supplied stylesheet to your existing one(s).

Let me know if there's any problems, or if you have any suggestions. I did not add a download file function (yet), as the headers are already sent out by header.php, thus causing some problems doing it the way I intended.

Download link: http://www.thesecondscreen.com/files/ap … or_1.1.zip

Dr.Jeckyl wrote:

so when you save an edited file, it on it's own, saves a copy of the file BEFORE the edit?

Yes, that's exactly what happens smile It creates an a new entry in a backup index file, with the filename, original path, time etc, and creates a backup of the original files content, before it finally writes the new file. Quite useful actually smile

Happy to see someone finding this useful smile

Oh, and the next version should not be that far away from release now, so here's a screenshot of the backup function I've added. Everytime you save a file, a backup copy will be created, which you can restore by just pressing a button smile The pink rows indicated that the backed up copy is identical to the one currently loaded in the editor (md5 checksum match). The table itself is displayed below any file you're currently editing.

http://img21.imageshack.us/img21/1153/febackup3ye.th.png


EDIT:

Almost forgot to mention, I've improved the file browser navigation a bit as well. It now displays your current location as before, but you can now click the folder names to back to whatever level you wish.

http://img21.imageshack.us/img21/9713/fenav2lq.th.png

@Dr. Jeckyl: I'll probably add that in the next release...along with a file backup function (meaning it'll keep a backup of any file you edit) smile

That should work just fine.. I didn't restrict it by default, seeing as the initial reason I made the script, was that I wanted an easy way to be able to edit PunBB while @ work without access to FTP/SSH smile

Oh, and thanks for the comments to both of you! smile

Update 16.02.06: See this post for the latest version 1.1.2

Hi everyone,

For the last few days, I've been working on a file/text editor for PunBB, and I now think it's ready for at least a beta release. The code still could use a *lot* of cleanup, but I've been testing it on several systems, and it have worked very well on all of them.
I'm still considering adding more features to it, but I'm sure you'll let me know what's needed wink

Some of the features:

* File browser
* Line by line editing of files, with line numbering (in line edit mode). Can switch between this mode, and free edit in a text area.
* To delete a complete line, just mark the checkbox for said line and save.
* "Save as..."
* Limit the type of files you're allowed to edit (see line: 13).
* Reject editing of specific files regardless of setting mentioned above. Defaults to reject this script, and config.php (see line: 26).

Now, as you can see, it's not the most advanced thing in the world, but as it's my first script of this type, I'm quite happy with it smile

---
Installation: Upload to your ./plugins folder, and add the CSS from the file 'add_this_to_your_style_sheet.css' to your CSS file (e.g. Oxygen.css).
---

Download: http://www.tasarinan.com/upload/AP_PunB … Editor.zip


Screens:

Browser:
http://img5.imageshack.us/img5/9907/febrowser4vt.th.png

Line editor:
http://img13.imageshack.us/img13/9058/felineedit1zm.th.png

Free edit:
http://img72.imageshack.us/img72/2859/fefreeedit6gu.th.png


EDIT: Updated script to check if the file extension specified when using "save as..." is allowed.

FredrikK wrote:

I have a problem with my forum and the modification Easy BBcode. When adding new smiles bigger then the original 15x15 size it doesn't look right when you are in the process of writing a new post. If I for example adds cards like GregK they get compressed to the size of 15x15 in the  Easy BBcode-function, but they look right in the posted post in the thread. (Do I make any sense? big_smile)

You'll need to edit 'mod_easy_bbcode.php' , and change line 93 from:

        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" width="15" height="15" alt="'.$smiley_text[$i].'" /></a>'."\n";

to:

        echo "\t\t\t\t\t\t\t".'<a href="javascript:insert_text(\''.$smiley_text[$i].'\', \'\');"><img src="img/smilies/'.$smiley_img[$i].'" alt="'.$smiley_text[$i].'" /></a>'."\n";

223

(5 replies, posted in PunBB 1.2 troubleshooting)

hargarzer wrote:
vnpenguin wrote:

I think this is a SQL compatibility problem. Check version of SQL servers.

can you be specific, penguin?
what are punbb's sql requitements?

Here you are: http://punbb.org/docs/install.html

224

(4 replies, posted in PunBB 1.2 show off)

pogenwurst wrote:

It only says 11 queries when I visit.

Anyway, I like the header.

Not on this page it doesn't wink

225

(4 replies, posted in PunBB 1.2 show off)

Looks good smile

I have a little question though, what mods exactly do you have installed, considering that the forum index page reports the following: Generated in 0.065 seconds, 42 queries executed yikes