1 (edited by Maciek 2004-05-31 09:04)

Topic: Redirect forum

What do you guys think about "redirect forum" MOD like this one click me
I create this to my forum ,but meyby someone need something like this

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

I like it. I know I always wondered what the hell you would want that for when Jelsoft showed it off in vb3, but I can think of several good uses of it now. I haven't considered any kind of implementation though. How have you set it up?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by Maciek 2004-05-31 11:39)

Re: Redirect forum

Rickard wrote:

I like it. I know I always wondered what the hell you would want that for when Jelsoft showed it off in vb3, but I can think of several good uses of it now. I haven't considered any kind of implementation though. How have you set it up?

It's very easy to set up smile

Two new database values in forum  table
Few small change in admin_forums.php
and some changes in index.php + one new icons and we have redirecting forum tongue

When i back from work i prepare small guide how do that.

there is admin_forum screen click me

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

Why not just making i a redirect when the field is not empty? Then you just need one new column :)

Re: Redirect forum

There's no need to make a "guide" unless you want to make it a mod. I was just wondering how you implemented it.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Redirect forum

Rickard wrote:

There's no need to make a "guide" unless you want to make it a mod. I was just wondering how you implemented it.


Ok how i implemented this?
That simple


1.when display redirect forum

if ($cur_forum['redirect'] != '1')
        $forum_field = '<span class="punheadline"><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></span>';
    else
        $forum_field = '<span class="punheadline"><a href="'.$cur_forum['forum_redirect'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></span>';

2 and icons

if (!$cookie['is_guest'] && $cur_forum['last_post'] > $cur_user['last_visit'])
    {
        if ($cur_user['show_img'] == '1')
            $icon = '<img src="img/'.$cur_user['style'].'_new.png" width="16" height="16" alt="">';
        else
            $icon = '<span class="puntext"><b>•</b></span>';
    }
    else
        $icon = ' ';

if ($cur_forum['redirect'] == '1')
$icon = '<img src="img/'.$cur_user['style'].'_redirect.png" width="16" height="16" alt="">'; 

That's all smile

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

Yes, I understand that now :D

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Redirect forum

I'm working on this now since it's a rather simple addition. It's not quite as simple as the instructions you posted above though. A few other scripts have to be updated. I.e. search to prevent people from attempting to search in forums with a redirect.

I have to decide on a way to mark forums with redirects. I don't want an icon. Any ideas?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Redirect forum

Rickard wrote:

I have to decide on a way to mark forums with redirects. I don't want an icon. Any ideas?

No icon ?
ok meyby something like this

click

if ($cur_forum['redirect'] != '1')
        $forum_field = '<span class="punheadline"><a href="viewforum.php?id='.$cur_forum['fid'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></span>';
    else
        $forum_field = '<span class="punheadline"><a href="'.$cur_forum['forum_redirect'].'">'.pun_htmlspecialchars($cur_forum['forum_name']).'</a></span><br><b>'.$lang_index['Redirect'].'</b>';

or this

click

else
        $icon = ' ';
if ($cur_forum['redirect'] == '1')
            $icon = '<span class="puntextA">'.$lang_index['R'].'</span>';
The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

I still want people to be able to enter a description, so the first suggestion won't do. The second suggestion uses a special icon for redirect forums. I don't want that. Icons are evil! :D

"Programming is like sex: one mistake and you have to support it for the rest of your life."

11 (edited by Maciek 2004-05-31 21:12)

Re: Redirect forum

Rickard wrote:

I still want people to be able to enter a description, so the first suggestion won't do. The second suggestion uses a special icon for redirect forums. I don't want that. Icons are evil! big_smile


First suggestion : People still can enter a description
click
click

Second suggestion : This is Text not icon

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

Possibly the second suggestion. In PunBB 1.2 the list of moderators is placed under the forum description, so I'm not too keen on putting more stuff there though.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

13

Re: Redirect forum

You could put a couple of slashes in front of the forum name like a web address

//This Forum

You could cheat and put all redirected forums in a special category and call it "Redirected Forums".

Put some arrows after the forum name indicating it is going somewhere

This Forum >>>  (Actually I rather like this one)

As there will be no last post then you could use that column and put in the words
Redirected
Offsite
That also explains why there are no last post details etc.

Incidentally, would a use for this be to redirect the mod forums to punres?

Re: Redirect forum

Hmm, something that looks like an arrow placed in front of the forum name could work.

"Real programmers are those that can sleep in front of terminals ... with their eyes opened."

"Real programmers don't work from 9 to 5. If any real programmers are around at 9am it's because they were up all night."

Re: Redirect forum

The slash thing was kinda ugly, but the three arrows is not a bad idea. The verdana character > is really ugly in 12px bold though so I might just add three arrows in the regular font size "outside" the link. Here's what I mean.

http://punbb.org/stuff/redirect.png

The text there is the description for the forum. It can be changed of course.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

16

Re: Redirect forum

Rickard wrote:

Possibly the second suggestion. In PunBB 1.2 the list of moderators is placed under the forum description, so I'm not too keen on putting more stuff there though.

Yes i think this is good idea.Btw you can turn off display list of moderators when forum is redirect .

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

17

Re: Redirect forum

I thought that was the best solution. Might look even better with the spacing adjusted to close up the arrows.

BTW: Just installed Mandrake 10. You will be pleased to know everything on 1.2 works with the latest version of Konqueror.

18

Re: Redirect forum

Rickard wrote:

The slash thing was kinda ugly, but the three arrows is not a bad idea. The verdana character > is really ugly in 12px bold though so I might just add three arrows in the regular font size "outside" the link. Here's what I mean.

http://punbb.org/stuff/redirect.png

The text there is the description for the forum. It can be changed of course.

Simple and Impression smile

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

Paul wrote:

BTW: Just installed Mandrake 10. You will be pleased to know everything on 1.2 works with the latest version of Konqueror.

Sweet! :D

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Redirect forum

Maciek wrote:

Yes i think this is good idea.Btw you can turn off display list of moderators when forum is redirect .

The moderators won't be displayed for redirect forums. Neither will number of topics and replies. I've made it so that only empty forums (i.e. new forums) can be turned into redirect forums. That prevents having to move all old topics in that forum into other forums and a whole lot of other crap.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

21 (edited by Maciek 2004-06-01 12:22)

Re: Redirect forum

Rickard wrote:

That prevents having to move all old topics in that forum into other forums and a whole lot of other crap.

In my redirect forum version moderators and admin can't move old topic into that forum , but i still have problem how block searching on this forum . Any idea ?

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: Redirect forum

You'll have to wait for 1.2 :)

"Programming is like sex: one mistake and you have to support it for the rest of your life."

23

Re: Redirect forum

Rickard wrote:

I like it. I know I always wondered what the hell you would want that for when Jelsoft showed it off in vb3, but I can think of several good uses of it now. I haven't considered any kind of implementation though. How have you set it up?


give an example smile i dont know why a link would be so important that you need to put it on the fronbt side of your board

Most people are other people. Their thoughts are someone else's opinions, their lives a mimicry, their passions a quotation - Oscar Wilde

Re: Redirect forum

An example is if you have a bug tracker and want people to post bugs there instead of the forums. Then you can make a redirect forum that points to the bug tracker.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

25 (edited by Rod 2004-09-24 10:27)

Re: Redirect forum

1.2 will be great ! smile

Rickard : on the way to create the PERFECT forum ? smile

(in spite of tabular TABLE ... hahahaa) smile