Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Oldiesmann on October 18, 2004, 07:01:58 AM

Title: Redirection Boards
Post by: Oldiesmann on October 18, 2004, 07:01:58 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=38)

This provides the functionality for redirecting users when they enter certain boards. Several new options will appear in the "Modify Boards" section of the admin center.

NEW! Version 2.01 released (September 30th, 2006)!

New features:
No new features in this version. Just bugfixes and compatibility with 1.0.8 and 1.1 RC3

Note: Due to the number of bugs in 2.0, you can't upgrade from it. You will need to uninstall it first and re-install this version instead.

Let me know if you have any problems or questions.

Update (9/30/06): Fixed some more bugs and updated the mod to work with 1.0.8 and 1.1 RC3...

Screenshots attached...
First screenshot shows default "Modify Board" screen.
Second screenshot shows several additional redirection boards settings that show up after you check the "Make this a redirection board" box (ah the fun of Javascript).
The third screenshot shows a default redirection board. The "--" column can be hidden by checking the box next to Hide "topics and posts" for redirection boards in the "Edit Features and Options" section (1.0.x) or "Manage Boards -> General Settings" section (1.1). If you aren't counting clicks, "N/A" is displayed instead of the number of clicks.

Test: http://smf.oldiesmann.us/index.php / http://smf.oldiesmann.us/index.php?board=93
Title: Re: Redirection Boards
Post by: Norbert on October 20, 2004, 07:53:42 AM
When I try to install the mod, I get this message:

QuoteFatal error: packageinstall(): Failed opening required '/home/www/web62/html/forum/Packages/temp/RedirectPdb.php' (include_path='.:/usr/share/php') in /home/www/web62/html/forum/Sources/Packages.php on line 437

My server is in safe mod. What can I do?
Title: Re: Redirection Boards
Post by: FaSan on October 24, 2004, 04:06:45 PM
Set "Packages" folder at 777  ;)
Title: Re: Redirection Boards
Post by: Norbert on October 25, 2004, 03:11:24 AM
QuoteSet "Packages" folder at 777
I have the folder at 777. But when I set the "temp" folder to 777, after I run the script, the "temp" turns to 755. Perhaps there is the problem. But how can I fix it?
Title: Re: Redirection Boards
Post by: Grudge on October 25, 2004, 07:10:51 AM
Can you download the mod onto your server and make sure that redirectdbP.php exists, just incase I missed it. Otherwise you could download it to your PC, edit packages-info.xml to remove the reference to redirectdbP.php, re tar it and upload it again, this should hopefully make the "install" work. You then need to make the SQL changes, which should be easy to do by looking in redirectDBp.php and using phpMyAdmin to do the queries... hope this makes some vague sense :P
Title: Re: Redirection Boards
Post by: Norbert on October 25, 2004, 10:42:02 AM
Now the installation of ...-Core works.

When I want to install ...-Baby, I get this message:
QuoteInstall Actions for archive redirect-baby_v1_2.tar.gz:
There are no installation or uninstallation actions defined!
Title: Re: Redirection Boards
Post by: Norbert on October 25, 2004, 01:03:32 PM
I have just installed ...baby.mod manually.

:D Thx. It works great for me.

Here is the txt for Modifications.german.php:
$txt['redirect_enable'] = 'Aus diesem Board ein Weiterleitungs-Board machen';
$txt['redirect_enable_desc'] = 'Das wird jeden Nutzer, der versucht Zugang zu diesem Board zu bekommen, zu einer URL Ihrer Wahl weiterleiten.';
$txt['redirect_location'] = 'URL, zu der weitergeleitet werden soll';
Title: Re: Redirection Boards
Post by: jamesgrant on November 07, 2004, 07:48:39 AM
hi

i've downloaded all the files, and installed them fine.... it says they have installed successfully in the package manager, but when i got into the 'manage boards' section of my control panel.... nothing is different, and i can't find where to use this mod....

am i looking in the right places? there is nothing in the 'modify board' section, or the permissions, or if i click 'modify' on any of my existing boards....  ::)
Title: Re: Redirection Boards
Post by: Grudge on November 07, 2004, 09:55:27 AM
It should appear in the modify board area, near the option for "Override members theme". If it isn't Check modifications.english.php in your languages directory to confirm the changes have indeed been made. You did hit "Proceed" after the initial list of "Successes" didn't you (i.e the first page of applying is a mod is a test, you have to hit proceed to actually make the changes)
Title: Re: Redirection Boards
Post by: scottb on November 07, 2004, 11:28:09 AM
Very nice mod thanks :)
Title: Re: Redirection Boards
Post by: jamesgrant on November 08, 2004, 06:14:33 AM
Hey grudge,

no nothing is there, and i have the installation saying it's been successful, with all the ticks in package manager etc etc.... i'm thinking of uninstalling it, and then re-installing it again just to see if that does anything..

Just a thought though, i'm not using the normal theme, i'm using 'themesis' downloaded from here.... would that have anything to do with it?? I noticed that when it's installed it has "classic theme extras" and "babylon theme extras".... i'm not using either!!! is that gonna have anything to do with it????  :-\ :-\ :-\ :-\ :-\ :-\

I really could do with this mod too  :'(

James   8) 8)
Title: Re: Redirection Boards
Post by: Grudge on November 08, 2004, 09:43:44 AM
Ummm... if you are using a different theme then you will need to manually edit index.template.php I'm afraid. However, the language file *should* still have been edited. I assume the theme you are using doesn't have a full set of templates in the folder (i.e ManageBoards.template.php doesn't exist in that theme directory!)

Assuming ManageBoards.template.php doesn't exist in your themesis directory then the install definetly didn't work. There is definetly a "green" label next to the mod name in the package manager though? Strange.
Title: Re: Redirection Boards
Post by: jamesgrant on November 08, 2004, 10:30:17 AM
Hi grudge....

what do i need to manually replace then in the php files?? or is this going to be a nitemare to sort out on my theme  :'( :'( :'(
Title: Re: Redirection Boards
Post by: Grudge on November 08, 2004, 10:41:50 AM
Download the package for the "Babylonkin" theme, extrac it (it's a tar.gz file) and look at the mod file in the tar.gz file. Just follow the search/replace guide for your theme of choice - it should only be 1 or 2 manual changes. Just make sure you have the mod installed and appearing on Manage Boards BEFORE you make these changes ;)
Title: Re: Redirection Boards
Post by: Jerry on December 02, 2004, 12:41:38 AM
Very nice work on this mod grudge, sorry for activating this topic again. I think maybe instead of the default theme "Extras" , they should be default ;). I also think maybe instead of using off.gif for the image that they could have thier own image. Thats my 2 cents for this mod :P My old board used to have these, thanks!
Title: Re: Redirection Boards
Post by: Grudge on December 02, 2004, 06:20:06 PM
The reason why are seperate is because if someone has modified either of the themes I didn't want to force it to fail. They could indeed have their own image, but I'll leave that to the board users - as I'm not artist :P
Title: Re: Redirection Boards
Post by: Jerry on December 02, 2004, 10:01:10 PM
lol ok, another question. For the theme extras, is it possible to show how many times that link has been clicked?
Title: Re: Redirection Boards
Post by: Grudge on December 05, 2004, 07:34:44 AM
Not at the moment Jerry, Could probably be done by using the numViews column on boards, and increasing that every click. I'm just short of time at the moment, someone could probably code it up in 20 minutes though :|
Title: Re: Redirection Boards
Post by: ajk on March 11, 2005, 08:52:31 AM
Very nice mod Grudge!

Can you make it available for Bloc's Helios PLEASE!!!????  :) ;)
Title: Re: Redirection Boards
Post by: vagrant on March 15, 2005, 09:21:02 AM
what would i have to change to make the redirect open in a new window ?

i have looked and not too sure with php *sigh*

thanks in advance.

vagrant
Title: Re: Redirection Boards
Post by: Oldiesmann on March 15, 2005, 07:36:02 PM
Hmmm... Good question... Grudge?
Title: Re: Redirection Boards
Post by: winnet on March 31, 2005, 12:20:18 AM
so, anyone found how to redirect in another new window? I dont want to people to leave forum
and conts also will be nice, and useful ofcourse

tks
Title: Re: Redirection Boards
Post by: [Unknown] on March 31, 2005, 01:23:34 AM
It wouldn't be hard to make it redirect to a new window.  In the template changes, just just the <a href="..."> to <a href="..." target="_blank">.

As for counting hits, that's pretty easy too, althugh it would mean adding an inbetween...

-[Unknown]
Title: Re: Redirection Boards
Post by: sharkey on April 02, 2005, 06:48:51 PM
is this working with 1.0.3 ? I get the following error when applying the mod:

4. Execute Modification ./Sources/ManageBoards.php Failure  
Title: Re: Redirection Boards
Post by: winnet on April 06, 2005, 09:13:42 PM
yes, it works both on 1.0.2 and 1.0.3, also works fine after upgrading from 1.0.2 to 1.0.3

but, I did actually  realize that:
because is not counting the visits, and because in right side always display 0 posts in 0 topics, users don't use those links.
in my old forums (phpbb) use to have 40 to 50 daily visits on each of three links like that, now I'm counting 10 visits in total :( sad isn't it?

and so, a great mod became useless; it's your decision to install or not, mod works but no one see :)
Title: Re: Redirection Boards
Post by: winnet on April 24, 2005, 05:51:03 PM
is anyone working on this mode?
Title: Re: Redirection Boards
Post by: sdl on May 27, 2005, 09:29:19 PM
OK, I've installed this mod (forgive the lay-ness of this post - it's all I speak).  Everything said "Success".  I'm actually not seeing any new options in the "Manage Boards" section (didn't see anything that said "Modify Boards").

What I wanted to do:

I have an SMF forum located at the root of my domain.  In a subfolder of the same domain, I have a photo album (coppermine) installed.  I want to put a link to coppermine (and vice versa on the coppermine pages), so that forum members can go back and forth between the two applications.  Is this the right application to do this (from the SMF end)?  How would I go about doing this?



Title: Re: Redirection Boards
Post by: [Unknown] on May 27, 2005, 09:36:34 PM
Success is just for the test.  Have you actually proceeded with the installation?

-[Unknown]
Title: Re: Redirection Boards
Post by: sdl on May 27, 2005, 10:11:14 PM
Sorry, yes. Each time it presented me with a [Proceed] link, and each time I pressed it with no errors.
Title: Re: Redirection Boards
Post by: sdl on May 27, 2005, 10:34:11 PM
Just to confirm, my installed.list says:

Spam-me-not|^|Spam-me-not1.0.1.zip|^|CSpotkill:Spam-me-not|^|1.0.1
Redirection Boards - Core|^|redirect-core_v1.12.tar.gz|^|grudge:redirect1.12|^|1.12
Redirection Boards - Classic Theme Extras|^|redirect-classic_v111.2.tar.gz|^|grudge:redirect_classic1.12|^|1.12
Redirection Boards - Babylon Theme Extras|^|redirect-baby_v111.12.tar.gz|^|grudge:redirect_baby1.12|^|1.12

As for this post from Grudge:

Quote from: Grudge on October 25, 2004, 07:10:51 AM
Can you download the mod onto your server and make sure that redirectdbP.php exists, just incase I missed it. Otherwise you could download it to your PC, edit packages-info.xml to remove the reference to redirectdbP.php, re tar it and upload it again, this should hopefully make the "install" work. You then need to make the SQL changes, which should be easy to do by looking in redirectDBp.php and using phpMyAdmin to do the queries... hope this makes some vague sense :P

This one made only the vaguest sense to me (but I am a lay-Newb, so there's two strikes there) -

I ftp explored all folders and could find neither redirectdbP.php or packages-info.xml - in fact, I did a search on each of these files and found no reference to either of them anywhere else on the boards. Am I supposed to have them?

(the "...make the SQL changes, which should be easy..." scared the hell out of me, btw.)
Title: Re: Redirection Boards
Post by: sdl on May 28, 2005, 01:39:18 AM
OK, I found it. I went into Manage Boards, selected "Modify" next one of my categories, and one of the options presented to me was:

Make this board a redirection board
This will redirect any user attempting to access this board to a URL of your choice

When you create a new board, the same option is presented.

GREAT MOD, THANK YOU.

NOTE: At first I redirected to a subfolder on my site (to Coppermine, which I have integrated with SMF), using the full URL (http://mydomain.com/coppermine) - but whenever I selected the link, it brought me to to the coppermine folder OK, but it showed me as not logged in. Logging in didn't help, and I had no admin status.  After a lot of scratching, experimenting and troubleshooting, I changed the redirection link to just "/coppernine" without the http:// or domain references. Worked like a charm, although I still don't know why.

Thought I'd throw that out there in case someone else runs into the same problem.



Title: Re: Redirection Boards
Post by: drhamad on June 28, 2005, 11:43:39 AM
I have a bit of a feature request... any way to remove "0 posts 0 topics"?  This makes it look like a discussion board that nobody goes to.
Title: Re: Redirection Boards
Post by: David on July 08, 2005, 01:40:16 AM
Can we get this updated to 1.0.5?
Title: Re: Redirection Boards
Post by: SeaOfSin on July 08, 2005, 03:49:06 AM
It should be fine for 1.05 I thought.  Well it is working for me! I also have it working for 1.1 Beta 3 public.
Title: Re: Redirection Boards
Post by: drhamad on July 08, 2005, 11:00:24 AM
Yeah works for me in 1.0.5 as well.
Title: Re: Redirection Boards
Post by: David on July 08, 2005, 11:19:13 AM
Hmm, will have to pla around more.  The package manager was complaining.  Thanks.
Title: Re: Redirection Boards
Post by: winnet on July 10, 2005, 04:49:05 PM
Quote from: drhamad on June 28, 2005, 11:43:39 AM
I have a bit of a feature request... any way to remove "0 posts 0 topics"?  This makes it look like a discussion board that nobody goes to.

it looks like no one is taking care of this mod. With 0 posts and 0 topics this mod became useless.
Title: Re: Redirection Boards
Post by: drhamad on July 11, 2005, 11:15:13 AM
Quote from: winnet on July 10, 2005, 04:49:05 PM
Quote from: drhamad on June 28, 2005, 11:43:39 AM
I have a bit of a feature request... any way to remove "0 posts 0 topics"?  This makes it look like a discussion board that nobody goes to.

it looks like no one is taking care of this mod. With 0 posts and 0 topics this mod became useless.

Yeah, it makes it look like a board that no one visits :(
Title: Re: Redirection Boards
Post by: zillion on July 17, 2005, 04:54:58 PM
Quote from: SeaOfSin on July 08, 2005, 03:49:06 AM
I also have it working for 1.1 Beta 3 public.

When I try to install it on Beta 3, I get a warning from the Package Manage.
3.     Execute Modification     ./Sources/Load.php     Test failed
"It is strongly recommended that you do not continue with installation unless you know what you are doing"

Did you just proceed past that ...or what?
Title: Re: Redirection Boards
Post by: Grudge on July 17, 2005, 05:58:11 PM
I wouldn't install it if the step failed. I'll have to try and update this mod for SMF 1.1 I guess :/

Also - for the people who get 0 posts/0 replies - have you installed the "theme" packages or not? They *should* remove those figures I thought?
Title: Re: Redirection Boards
Post by: SeaOfSin on July 17, 2005, 06:01:45 PM
What you need to do is proceed and then edit Load.php

What needs to be changed is


b.ID_THEME, b.override_theme, b.use_local_permissions


instead of looking for that it needs to find


b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts


and add


, b.redirect

after it.

I believe that is the only change needed!
Title: Re: Redirection Boards
Post by: SeaOfSin on July 17, 2005, 06:02:19 PM
it works fine for me! :)
Title: Re: Redirection Boards
Post by: atambo on July 18, 2005, 12:16:23 AM
I've got this mod installed on a 1.1 beta 3 board using the default theme and I dont see a special package on the mod page to get rid of the 0 posts 0 topics anyway there could be a default added also?
Title: Re: Redirection Boards
Post by: white1 on July 19, 2005, 09:00:49 AM
hmm same problem!!! how can we get rid of the 0 post count?
Title: Re: Redirection Boards
Post by: SeaOfSin on July 20, 2005, 03:22:01 AM
Since I don't seem to see anyone trying to resolve this issue themselves and until the mod writer steps in, here is a quick fix for you people who don't want post count to show on boards with zero posts and topics. now this isn't just for redirection boards it will do it for any board like this!

Open BoardIndex.template.php
Find

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">';



and replace

if(empty($board['posts']) && empty($board['topics']))
{
echo '
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
</span></td>';
}
else
{
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>';}
echo'
<td class="smalltext" valign="middle" width="22%">';


Now hopefully that will make a few people happy! :) 

Also if you want something in place of nothing in the spot for 0 posts and 0 topics.  put something between


<span class="smalltext">

and

</span>


Any questions? :P

By the way this took me about 10 minutes to write and I have only used php for 4 months! :)

Try stuff out get yourselves a test forum and test things that is what it is there for..... and it is the best way to learn!

Now back to our regularly scheduled programming!
Title: Re: Redirection Boards
Post by: atambo on July 20, 2005, 03:57:32 AM
thanx a bunch! working good now  :D
Title: Re: Redirection Boards
Post by: Oldiesmann on July 28, 2005, 06:39:05 PM
Quote from: David on July 08, 2005, 11:19:13 AM
Hmm, will have to pla around more.  The package manager was complaining.  Thanks.

Fixed :)

I'll try to update it to 1.1 Beta 3 Public soon.
Title: Re: Redirection Boards
Post by: winnet on July 28, 2005, 09:12:27 PM
maybe you will find a little time to implement the counting of visitors features.
10x
Title: Re: Redirection Boards
Post by: taz on July 30, 2005, 05:16:07 PM
Quote from: Oldiesmann on July 28, 2005, 06:39:05 PM
I'll try to update it to 1.1 Beta 3 Public soon.

Thanks that is what I was going to ask for
Title: Re: Redirection Boards
Post by: Scubasteve on August 17, 2005, 05:07:47 PM
I'm having an issue with this mod on my forum, version 1.1B3.

I tried to download the mod manually, and when i attempt to upload to the forum i always fet a corruption error. So i tried through the PM and when i click install it gives me this error (regardless of the theme i use):

Fatal error: packageinstall(): Failed opening required '/home/sbilling/public_html/forum/Packages/temp/./RedirectPdb.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sbilling/public_html/forum/Sources/Packages.php on line 499

Is there a way to do this by hand? If it matters the one in the PM says version 1.12
Title: Re: Redirection Boards
Post by: Scubasteve on August 19, 2005, 01:18:09 AM
anyone?
Title: Re: Redirection Boards
Post by: 1948Pal on August 29, 2005, 05:30:08 PM
Quote from: Oldiesmann on July 28, 2005, 06:39:05 PM
Quote from: David on July 08, 2005, 11:19:13 AM
Hmm, will have to pla around more.  The package manager was complaining.  Thanks.

Fixed :)

I'll try to update it to 1.1 Beta 3 Public soon.

This is a nice mod, I'd like to use, Just wondering if it still will  be updated for 1.1. It seems to break on Sources/Load.php
Title: Re: Redirection Boards
Post by: amanoffewwords on September 11, 2005, 02:59:26 PM

Ditto, I'd love it to work for 1.1 - all my users are ignoring redirections in posts while they did click on the board redirects (curiosity killed the cat...).

Title: Re: Redirection Boards
Post by: atambo on September 11, 2005, 09:56:30 PM
I've got this running on 1.1 beta 3 and it seems to work fine...check it out at www.twuclan.net/forums/
Title: Re: Redirection Boards
Post by: winnet on September 17, 2005, 12:35:45 AM
anyone working on this mod?
:-\
Title: Re: Redirection Boards
Post by: ArkServer on September 21, 2005, 12:09:57 PM
is it updated for 1.1 beta 3 yet?
Title: Re: Redirection Boards
Post by: winnet on September 24, 2005, 09:19:26 AM
update for RC1?
Title: Re: Redirection Boards
Post by: MaximoDecimoMeridio on September 24, 2005, 11:45:49 AM
I think that this mod have to been incluse in the official smf package.
Title: Re: Redirection Boards
Post by: dknoppix on September 28, 2005, 05:55:09 PM
Umm..I'm kinda a n00b to SMF, but how do you install this? And where do you upload this?

dk
Title: Re: Redirection Boards
Post by: Scubasteve on October 03, 2005, 02:15:14 AM
yea this for rc1 would be sweet
Title: Re: Redirection Boards
Post by: Oldiesmann on October 06, 2005, 05:33:08 PM
I should have an updated version available for 1.1RC1 soon.
Title: Re: Redirection Boards
Post by: JayBachatero on October 06, 2005, 06:00:30 PM
Quote from: dknoppix on September 28, 2005, 05:55:09 PM
Umm..I'm kinda a n00b to SMF, but how do you install this? And where do you upload this?

dk

What version of SMF are you using?
Title: Re: Redirection Boards
Post by: JesterDesigns on October 22, 2005, 09:39:53 AM
I get this error when trying to install the mod via Package manager - Im using v1.0.5

2: copy(/home/true/public_html/bhudzmu/forums/Sources/Load.php~) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /home/true/public_html/bhudzmu/forums/Sources/Subs-Package.php
Line: 1304

It appears after i click on [Proceed], the sceen before says everything has suceeded.

Can anyone help?

Andy
Title: Re: Redirection Boards
Post by: winnet on October 27, 2005, 01:28:39 PM
is anyone still working on this mod?
if no, is better to removed from list

or maybe will be default integrated in next releases?
Title: Re: Redirection Boards
Post by: Oldiesmann on October 27, 2005, 02:14:22 PM
Quote from: bhudzmu on October 22, 2005, 09:39:53 AM
I get this error when trying to install the mod via Package manager - Im using v1.0.5

2: copy(/home/true/public_html/bhudzmu/forums/Sources/Load.php~) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /home/true/public_html/bhudzmu/forums/Sources/Subs-Package.php
Line: 1304

It appears after i click on [Proceed], the sceen before says everything has suceeded.

Can anyone help?

Andy

Delete Sources/Load.php~ (note the ~ on the end) and try again.

winnet - I am still working on this. I've been really busy and haven't had much time to do anything with it.
Title: Re: Redirection Boards
Post by: Pause on November 11, 2005, 08:47:36 AM
Just a little curious here - any chance of this being updated to work with 1.1 RC1?
Title: Re: Redirection Boards
Post by: Teknomancer on November 16, 2005, 09:09:30 AM
I have 1.1 RC1, this fails to execute in Load.php, and ManageBoards.php.

Anyhelp would be appreciated :)
Title: Re: Redirection Boards
Post by: WedgeTalon on November 26, 2005, 10:44:14 AM
Quote from: Oldiesmann on October 06, 2005, 05:33:08 PM
I should have an updated version available for 1.1RC1 soon.

I can't wait to see it! Any ETA?  ;D
Title: Re: Redirection Boards
Post by: Teknomancer on November 29, 2005, 01:35:53 AM
Quote from: Teknomancer on November 16, 2005, 09:09:30 AM
I have 1.1 RC1, this fails to execute in Load.php, and ManageBoards.php.

Anyhelp would be appreciated :)

Title: Re: Redirection Boards
Post by: 1948Pal on November 29, 2005, 09:46:06 AM
Quote from: Mattitude on November 11, 2005, 08:47:36 AM
Just a little curious here - any chance of this being updated to work with 1.1 RC1?
I second that!
Title: Re: Redirection Boards
Post by: winnet on December 11, 2005, 06:45:09 PM
any news? no
I think it will be better to remove this from the list

RIP.
Title: Re: Redirection Boards
Post by: Oldiesmann on December 13, 2005, 08:46:58 PM
I've been busy and haven't had time to update it. I will try to get it updated by the end of the week, but I can't guarantee anything.
Title: Re: Redirection Boards
Post by: Pause on December 14, 2005, 08:55:25 AM
Quote from: Oldiesmann on December 13, 2005, 08:46:58 PM
I've been busy and haven't had time to update it. I will try to get it updated by the end of the week, but I can't guarantee anything.
Fair enough, thanks Oldiesmann  ;)
Title: Re: Redirection Boards
Post by: stubbie on December 15, 2005, 01:06:20 PM
Oldiesmann that would be great as I could really use this mod  8)
anyway just to say thanks whatever happens
Title: Re: Redirection Boards
Post by: winnet on December 15, 2005, 08:16:33 PM
Quote from: Oldiesmann on December 13, 2005, 08:46:58 PM
I've been busy and haven't had time to update it. I will try to get it updated by the end of the week, but I can't guarantee anything.

ok, tks for the effort
could be upgraded a little to count the number of clicks on the redirected forums? it would be better
Title: Re: Redirection Boards
Post by: 1948Pal on January 05, 2006, 05:27:51 PM
Hello. Any news on this mod?
Title: Re: Redirection Boards
Post by: winnet on January 07, 2006, 11:18:16 PM
yes, the news is that you can forget about this mod. it's dead.
RIP.
Title: Re: Redirection Boards
Post by: WedgeTalon on January 07, 2006, 11:39:00 PM
Dude, winnet, we just got out of the busy holiday season. Give the guy a break He's said he's been working on it multiple times. :p Maybe it's just me, but Oldiesmann seems to be a bit more of a vet than to just drop it without saying so.
Title: Re: Redirection Boards
Post by: kegobeer on January 08, 2006, 12:43:07 AM
There are a lot of things going on here at SMF.  Believe me, people are pretty busy.  Unless you've talked to Oldie, I wouldn't say this mod is "RIP".  It'll be done when it's done.  Just hang in there.
Title: Re: Redirection Boards
Post by: 1948Pal on January 09, 2006, 12:02:39 PM
OK, works for me. Take all the time you need. A good mod like this is worth waiting for.
Good luck
Title: Re: Redirection Boards
Post by: winnet on January 14, 2006, 03:55:03 PM
was not updated for beta3, was not updated for rc1, it will not be to rc2. More simple then that what do you people want?
crystal clear.
Title: Re: Redirection Boards
Post by: Thantos on January 14, 2006, 04:26:35 PM
Updating mods is a boring tedious chore.  Updating for different versions of a beta release is even more annoying.  Just because he hasn't made a version for 1.1 yet doesn't mean he won't.
Title: Re: Redirection Boards
Post by: Uzbekistan on January 15, 2006, 02:19:11 PM
I am waiting for it as well. ;) Just letting you know.
Title: Re: Redirection Boards
Post by: L.G.S on February 05, 2006, 08:41:08 AM
I have found something interesting out about the board areas.

You can have redirection boards WITHOUT any modifications.

All you have to do is use HTML to link somwhere in the board title.

E.G <a href=http://www.google.com>Visit Google!</a> in the board title gives you a direct link to google!
Title: Re: Redirection Boards
Post by: SaikoJosh on February 05, 2006, 09:03:06 AM
I have SMF 1.1 RC 2 with SMF Arcade installed and I cannot install the redirection boards "core".

I get these errors:

Quote3.     Execute Modification     ./Sources/Load.php     Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test failed
Title: Re: Redirection Boards
Post by: L.G.S on February 05, 2006, 09:17:07 AM
Because this mod is not made for 1.1RC2
Title: Re: Redirection Boards
Post by: SaikoJosh on February 05, 2006, 09:19:19 AM
Quote from: L.G.S on February 05, 2006, 09:17:07 AM
Because this mod is not made for 1.1RC2

Whoops, misread "1.0 RC2" as "1.1 RC 2".
Title: Re: Redirection Boards
Post by: L.G.S on February 05, 2006, 09:36:03 AM
I do that sometimes too ;)

But as a temporary solution, why not read my post which is above your first one?
Title: Re: Redirection Boards
Post by: SaikoJosh on February 05, 2006, 09:39:14 AM
@L.G.S:

Wow, thanks for that. Saves installing a MOD. :)
Title: Re: Redirection Boards
Post by: L.G.S on February 05, 2006, 09:42:42 AM
Glad I helped somebody :D
Title: Re: Redirection Boards
Post by: winnet on February 05, 2006, 10:04:57 AM
it would be nice if someone write a piece of code to count the number of visits.
else, the redirected forum looks like a forum with zero posts, and no user are tempted to enter there.
Title: Re: Redirection Boards
Post by: dazultra on February 09, 2006, 09:06:48 PM
Quote from: L.G.S on February 05, 2006, 08:41:08 AM
I have found something interesting out about the board areas.

You can have redirection boards WITHOUT any modifications.

All you have to do is use HTML to link somwhere in the board title.

E.G <a href=http://www.google.com>Visit Google!</a> in the board title gives you a direct link to google!
you sir are a <insert word here> genious, this works perfectly. i have also implemented this in my category titles, instead of using the link to collapse them
Title: Re: Redirection Boards
Post by: L.G.S on February 10, 2006, 07:03:36 AM
With a helping post comes another!

I didn't know it could be used for categories too :P
Title: Re: Redirection Boards
Post by: winrules on March 10, 2006, 06:14:22 PM
Quote from: L.G.S on February 05, 2006, 08:41:08 AM
I have found something interesting out about the board areas.

You can have redirection boards WITHOUT any modifications.

All you have to do is use HTML to link somwhere in the board title.

E.G <a href=http://www.google.com>Visit Google!</a> in the board title gives you a direct link to google!
Thanks for that!
I expanded on it a little to get rid of the link on the new posts icon on the left:
In 1.1RC2 BoardIndex.template.php:
Find:
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
And Replace With:
Quote
   global $context, $settings, $options, $txt, $scripturl, $modSettings;
   //Add redirection boards into this array
   $redirect = array(boards);

Find:
Quote
            <td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top"><a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';
And Replace With:
Quote
            <td ' , !empty($board['children']) ? 'rowspan="2"' : '' , ' class="windowbg" width="6%" align="center" valign="top">';
            //If the board is in $redirect, don't link the image.
            if(!in_array($board['id'], $redirect))
               echo '<a href="', $scripturl, '?action=unread;board=', $board['id'], '.0">';

Replace boards with whatever boards you want to be redirection boards. So if you want boards id 5 and 6 then it would be "array(5, 6)".
Title: Re: Redirection Boards
Post by: jguzman on March 16, 2006, 01:57:31 PM
Quote from: L.G.S on February 05, 2006, 08:41:08 AM
I have found something interesting out about the board areas.

You can have redirection boards WITHOUT any modifications.

All you have to do is use HTML to link somwhere in the board title.

E.G <a href=http://www.google.com>Visit Google!</a> in the board title gives you a direct link to google!

good call this works great.  i added a target="blank" and it's exactly what i need!
Title: Re: Redirection Boards
Post by: Pause on March 17, 2006, 08:31:24 AM
You can actually have images in place of the text also

<a href="http://www.domain.com" target="_blank"><img src="mylogo.gif" border="0"></a>
Title: Re: Redirection Boards
Post by: WedgeTalon on March 17, 2006, 09:09:08 AM
Don't mean to be a downer, but I'd imagine that allowing HTML in thread text will probably be viewed as a bug by the dev team and eventually go away. Maybe they'll put in a toggle option for it, maybe not.

The best and most permanent solution, next to a redirection feature being directly implemented in the core, is to have a mod to supply the needed function.

Not trying to say you shouldn't use it, just saying that if you do, be prepared to adapt to it going away.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 07, 2006, 09:07:31 PM
You've always been able to use HTML in board titles and descriptions. It's a lot safer than allowing HTML in posts because the admin has complete control over who has access to editing board descriptions, so there's less of a chance that it could be abused.

Also, the next version of this mod will include a click counter and the ability to open the redirection board in a new window. I am putting the finishing touches on the upgraded versions of the theme stuff and still have some testing to do, but if all goes well, the mod should be out either tomorrow or early next week.
Title: Re: Redirection Boards
Post by: winrules on April 07, 2006, 09:10:52 PM
Quote from: Oldiesmann on April 07, 2006, 09:07:31 PM
You've always been able to use HTML in board titles and descriptions. It's a lot safer than allowing HTML in posts because the admin has complete control over who has access to editing board descriptions, so there's less of a chance that it could be abused.

Also, the next version of this mod will include a click counter and the ability to open the redirection board in a new window. I am putting the finishing touches on the upgraded versions of the theme stuff and still have some testing to do, but if all goes well, the mod should be out either tomorrow or early next week.
Will it work with 1.1?
Title: Re: Redirection Boards
Post by: Oldiesmann on April 12, 2006, 07:10:23 PM
Yes, it will work with 1.1.
Title: Re: Redirection Boards
Post by: L.G.S on April 12, 2006, 07:24:05 PM
Will this ever be made for 1.1rc2 ::)
Title: Re: Redirection Boards
Post by: Skipdawg on April 13, 2006, 05:46:05 PM
Quote from: L.G.S on February 05, 2006, 08:41:08 AM
I have found something interesting out about the board areas.

You can have redirection boards WITHOUT any modifications.

All you have to do is use HTML to link somwhere in the board title.

E.G <a href=http://www.google.com>Visit Google!</a> in the board title gives you a direct link to google!

Folks this is as simple as stated above. That is all I did with mine. I set one up on both forums to each other.
Did the whole thing in like a minute.  ;D ;)
Title: Re: Redirection Boards
Post by: Oldiesmann on April 24, 2006, 05:06:50 PM
New version is out! Please see the first post in this topic for upgrade instructions!
Title: Re: Redirection Boards
Post by: winrules on April 24, 2006, 07:28:56 PM
Quote from: Oldiesmann on April 24, 2006, 05:06:50 PM
New version is out! Please see the first post in this topic for upgrade instructions!
Horray! Will install :)
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 25, 2006, 03:29:21 AM
After changing a few search strings in the modification_1-1.xml file to make it install with Topic Ratings installed, I get this error message when installing the mod:

QuoteDatabase Error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'tintytext NOT NULL' at line 1
File: /customers/xxx/httpd.www/forums/Packages/temp/RedirectPdb.php
Line: 26

EDIT #1: Oops, looking at that error message again, I see where the problem is... tintytext :).

EDIT #2: Gave me another SQL error :/.

QuoteDatabase Error

Duplicate entry 'redirect_hide_columns' for key 1
File: /customers/xxx/httpd.www/forums/Packages/temp/RedirectPdb.php
Line: 12

Hmm... could it be it inserted the columns in the database despite the previous SQL error? Better check...

Yep, had to delete a couple of columns in in smf_boards and smf_settings. Installed afterwards :).

EDIT #3: Ok, uninstalling the mod doesn't remove the column in the smf_boards table, making reinstalls fail.

EDIT #4: Hmm... get a SQL error when modifying a board now :(.

QuoteDatabase Error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1,
1,
redirect_url = ,
redirect_target = ,
is_r
File: /customers/xxx/httpd.www/forums/Sources/Subs-Boards.php
Line: 1036
Title: Re: Redirection Boards
Post by: Oldiesmann on April 25, 2006, 01:31:22 PM
Ok. Give me a few minutes to see what I can do. It looks like I messed up on a couple of things.
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 25, 2006, 02:07:36 PM
Hope you figure it out - it's a great mod... and definitely a better solution than the alternatives you can hack your way to in a default installation :).
Title: Re: Redirection Boards
Post by: L.G.S on April 25, 2006, 02:20:51 PM
Thanks, could I have a screenshot please?
Title: Re: Redirection Boards
Post by: Oldiesmann on April 25, 2006, 02:21:27 PM
Fixed both issues - added a query to Uninstall.php to remove the redirect_hide_columns setting and modified the appropriate code in modification_1-1.xml to fix the problem you were having with Subs-Boards.php. New file has been uploaded.

L.G.S. - I'll get you some screenshots after lunch (going to eat lunch now).
Title: Re: Redirection Boards
Post by: L.G.S on April 25, 2006, 02:49:12 PM
thanks a lot ;)
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 25, 2006, 03:07:06 PM
Quote from: Oldiesmann on April 25, 2006, 02:21:27 PM
[...]
Sweet, I'll give it another spin :).

EDIT:

$helptxt['redirect_hide_columns'] = 'If selected, this will hide the information about the number of posts and topics in a board for redirection boards.
For the default theme, this hides the "X posts Y topics" column. For the babylon theme, the "X posts in Y topics" column is hidden, and in the classic theme, the "posts" and "topics" columns are hidden. "--" is displayed instead if this is not selected.

The above should be...

$helptxt['redirect_hide_columns'] = 'If selected, this will hide the information about the number of posts and topics in a board for redirection boards.
For the default theme, this hides the "X posts Y topics" column. For the babylon theme, the "X posts in Y topics" column is hidden, and in the classic theme, the "posts" and "topics" columns are hidden. "--" is displayed instead if this is not selected.';

...otherwise all help texts would give a 'template parsing error'. ('; at the end ;))

I still get the SQL database error when submitting changes (or no changes) to a board, though :/:

QuoteDatabase Error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1,
1,
redirect_url = '',
redirect_target = '',

File: /customers/xxx/httpd.www/forums/Sources/Subs-Boards.php
Line: 1036
Title: Re: Redirection Boards
Post by: Oldiesmann on April 25, 2006, 03:19:03 PM
Update:
Fixed several more bugs. Working on fixing a minor display-related bug with ManageBoards.template.php (it's supposed to hide certain fields for boards that aren't redirection boards, but it's not working).

L.G.S - I'll add some screenshots once I fix the bugs. Hope you don't mind waiting a bit longer.
Title: Re: Redirection Boards
Post by: L.G.S on April 25, 2006, 04:05:58 PM
No thats fine :)
Title: Re: Redirection Boards
Post by: Oldiesmann on April 25, 2006, 06:52:33 PM
Note to self: Test mods thouroughly before releasing them... :)

Found and fixed several additional bugs, including some rather annoying ones (apparently "+=" doesn't work in MySQL). I'm pretty sure I've fixed all the bugs now, but let me know if you come across any more.

Screenshots are attached to the first post.
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 26, 2006, 02:18:01 AM
Quote from: Oldiesmann on April 25, 2006, 06:52:33 PM
Note to self: Test mods thouroughly before releasing them... :) [...]
But that's no... umm... "fun"... for us :P.
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 26, 2006, 02:45:07 AM
Under $themedir/BoardIndex.template.php a little typo has snuck in; opeartion.

EDIT #1: Argh, think my SMF installation crapped up on me... it won't let me upload any packages all of a sudden... says they are either not valid or corrupt. Will give it a shot again later on today.

EDIT #2: Hmm, the archive seem to lack a package-info.xml file... could that be it? But I didn't have any problems with uploading it the first couple of times... :o.

EDIT #3: Found a package-info.xml file from an archive in my trashcan, so got it to upload, and install after adjusting a search string under $themedir/BoardIndex.template.php, where it should find this line...


// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>


...but it was only...


// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>


...in my file.

It now gives me a template parsing error on entering a board:

QuoteTemplate Parse Error!
There was a problem loading the /Themes/default/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
parse error, unexpected '/'

Submitting changes to a board in the administration gives me a blank "An Error Has Occurred!" error :S.

-

Sorry to cause so much trouble :(.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 26, 2006, 11:28:44 AM
That's ok. I don't mind - this is what I get for not testing things out before releasing them ::)

Give me a bit to download stuff again (forgot to bring my USB drive to school) and I'll see what I can do to fix these bugs that keep popping up.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 26, 2006, 12:23:39 PM
Ok... I'm pretty sure I've fixed all the bugs now. I also added another package-info.xml file since I somehow forgot that last night... Try again and let me know if you run into any other problems that I may have missed.
Title: Re: Redirection Boards
Post by: L.G.S on April 26, 2006, 12:41:33 PM
screenshot please :(
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 26, 2006, 01:18:16 PM
Any chance you could reupload the file - getting errors in WinRAR.

L.G.S - there are screenshots in the first post of the topic.
Title: Re: Redirection Boards
Post by: L.G.S on April 26, 2006, 01:57:31 PM
Thanks for the notice :)
Title: Re: Redirection Boards
Post by: Oldiesmann on April 26, 2006, 02:46:52 PM
Re-uploaded the file. I'm not sure why you were getting errors in WinRar, but I recommend using UltimateZip instead...
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 26, 2006, 03:13:59 PM
Doubt the problem lies with WinRAR.

When viewing ./index.php?action=packages;sa=browse after uploading the archive, all I get is a white blank screen. Deleting the archive again renders the page as it's supposed to again.

Maybe the problem lies with UltimateZip, if that's what you use to archive it with :P.
Title: Re: Redirection Boards
Post by: L.G.S on April 26, 2006, 03:55:47 PM
will there ever be a 'clicks' amount where the post count should be for this mod?
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 26, 2006, 03:57:32 PM
Like in the third picture?
Title: Re: Redirection Boards
Post by: Oldiesmann on April 26, 2006, 04:38:51 PM
Currently the click count is displayed in the Last Post column because there's more room there and it looks nicer there... It probably wouldn't be too hard to display click count there, but I don't plan to change the location of this unless a lot of people really demand it.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 26, 2006, 08:40:18 PM
Seems the package somehow got corrupted. I was able to salvage the files though and re-uploaded a working archive. Sorry about that :)
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 27, 2006, 05:45:04 AM
I'm beginning to think my problems have something to do with the Topic Ratings mod, as I still get the error messages. Sadly I get errors trying to uninstall that one, so I can't easily test it out.
Title: Re: Redirection Boards
Post by: L.G.S on April 27, 2006, 01:06:03 PM
Quote from: Søren Bjerg on April 26, 2006, 03:57:32 PM
Like in the third picture?

I didn't know it was a hit area because it had no numbers on it
Title: Re: Redirection Boards
Post by: rockinaway on April 27, 2006, 01:22:51 PM
Problems still, when i try applying mod I get this message:

QuoteThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Why am I getting this?
Title: Re: Redirection Boards
Post by: rockinaway on April 27, 2006, 01:31:08 PM
Problem Solved!

But think I have found a small error. In the installation steps in the files Sources/Sub-Boards.php:


<operation>
<search position="replace"><![CDATA[
'prev_board' => $prevBoard
]]></search>
<add><![CDATA[
'prev_board' => $prevBoard,
'is_redirect' => $row['is_redirect'],
'count_clicks' => $row['redirect_count_clicks'],
'target' => $row['redirect_target'],
'url' => $row['redirect_url']
]]></add>
</operation>


I think should be:

<operation>
<search position="replace"><![CDATA[
'prev_board' => $prevBoard,
]]></search>
<add><![CDATA[
'prev_board' => $prevBoard,
'is_redirect' => $row['is_redirect'],
'count_clicks' => $row['redirect_count_clicks'],
'target' => $row['redirect_target'],
'url' => $row['redirect_url'],
]]></add>
</operation>


The comma missing in search would cause two commas to occur if I am not wrong? Also comma missing after 'url' => $row['redirect_url'] is missing, cuases an escape thing. New to this stuff so probably wrong, only checked as the file couldnt be edited automatically :D
Title: Re: Redirection Boards
Post by: Oldiesmann on April 27, 2006, 04:10:58 PM
I'll take a look at it again. Someone else is reporting an error when clicking modify after making a redirection board, so this might be related...
Title: Re: Redirection Boards
Post by: rockinaway on April 27, 2006, 04:11:53 PM
Have a problem, when I try adding a new board WITHOUT redirection selected I get this error:


You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1,
1,
redirect_url = '',
redirect_target = '',
is_rated = 0
W' at line 14
File: /home/.endora/etcworld/etcworld.co.uk/forum/Sources/Subs-Boards.php
Line: 1042



The lines in that area are, with 1042 as last lines:



// Set the permission mode (normal, no-polls, reply-only, read-only).
if (isset($boardOptions['permission_mode']) && empty($modSettings['permission_enable_by_board']))
$boardUpdates[] = 'permission_mode = ' . $boardOptions['permission_mode'];

// Is this a redirection board?
if (isset($boardOptions['is_redirect']))
$boardUpdates[] = 'is_redirect = ' . ($boardOptions['is_redirect']) ? '1' : '0';

// Counting clicks?
if (isset($boardOptions['count_clicks']))
$boardUpdates[] = 'redirect_count_clicks = ' . ($boardOptions['count_clicks']) ? '1' : '0';

// Resetting clicks?
if (isset($boardOptions['reset_clicks']) && $boardOptions['reset_clicks'])
$boardUpdates[] = 'redirect_clicks = 0';

// Redirection URL
if (isset($boardOptions['url']))
$boardUpdates[] = 'redirect_url = \'' . $boardOptions['url'] . '\'';

// Redirection URL target
if (isset($boardOptions['target']))
$boardUpdates[] = 'redirect_target = \'' . $boardOptions['target'] . '\'';

if(isset($boardOptions['is_rated']))
$boardUpdates[] = 'is_rated = ' . ($boardOptions['is_rated'] ? '1' : '0');

// Do the updates (if any).
if (!empty($boardUpdates))
$request = db_query("
UPDATE {$db_prefix}boards
SET
" . implode(',
', $boardUpdates) . "
WHERE ID_BOARD = $board_id
LIMIT 1", __FILE__, __LINE__);



I tried changing the order still doesnt work, any help?

Then when I try with redirection it says that 'An Error Has Occured' but there is no message!.. please help
Title: Re: Redirection Boards
Post by: Oldiesmann on April 27, 2006, 04:33:02 PM
I think these are because you had the topic ratings mod installed prior to installing redirection boards - some of the changes made by that mod probably conflicted with some changes made by this one. Unfortunately I haven't had much time to test the two together, but will try to do so soon.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 27, 2006, 05:06:46 PM
Found the problem...

The blank error message is due to a missing language string that's supposed to say "Redirection boards must have a URL!". However, you're getting the error because I re-named a couple of input boxes and forgot to change where it sets the values based on these. A new version of the package will be uploaded shortly, but you can fix it by doing this:

Sources/ManageBoards.php

Find
$boardOptions['url'] = isset($_POST['url']) ? $_POST['url'] : '';
$boardOptions['target'] = isset($_POST['target']) ? $_POST['target'] : '';

// You can't have a redirection board without specifying where to send them to!
if($boardOptions['is_redirect'] && $boardOptions['url'] == '')
{
fatal_lang_error('redirect_no_url', false);
}


Replace
$boardOptions['url'] = isset($_POST['redirect_url']) ? $_POST['redirect_url'] : '';
$boardOptions['target'] = isset($_POST['redirect_target']) ? $_POST['redirect_target'] : '';

// You can't have a redirection board without specifying where to send them to!
if($boardOptions['is_redirect'] && $boardOptions['url'] == '')
{
fatal_lang_error('redirect_no_url', false);
}
Title: Re: Redirection Boards
Post by: Oldiesmann on April 27, 2006, 05:26:50 PM
Ok. New version of the mod is up. As always let me know if you run into any additional problems.
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 28, 2006, 05:32:29 AM
I get this now...

QuoteDatabase Error

You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1,
1,
redirect_url = '{the actual url written here now}',
red
File: /customers/xxx/httpd.www/forums/Sources/Subs-Boards.php
Line: 1036
...but again, it might have something to do with the Topic Ratings mod.

Will try installing it on my local Topic Ratingsless installation when I get home from work. Should shed some light :).
Title: Re: Redirection Boards
Post by: rockinaway on April 28, 2006, 10:41:57 AM
Yes that error still remains, any help?
Title: Re: Redirection Boards
Post by: Oldiesmann on April 28, 2006, 01:55:27 PM
I think I've finally fixed it. I was setting the redirect_count_clicks and is_redirect values incorrectly:

$boardUpdates[] = 'redirect_count_clicks = ' . ($boardOptions['count_clicks']) ? '1' : '0'; instead of $boardUpdates[] = 'redirect_count_clicks = ' . ($boardOptions['count_clicks'] ? '1' : '0');

There is a slight difference in the way those statements are evaluated:

First statement - if redirect_count_clicks and $boardOptions['count_clicks'] are the same, the next value in the boardUpdates[] array should be 1, otherwise it should be 0

Second statement - the next value in the boardUpdates[] array should be "redirect_count_clicks = 1" if $boardOptions['count_clicks'] is true, otherwise it should be "redirect_count_clicks = 0".
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 28, 2006, 02:30:01 PM
That solved the error message :D.

The board index doesn't display properly on my end, though, but I'll see if changes were actually done to the files - had problems with another mod, which would successfully install... but some of the changes wouldn't be made to the actual file.

EDIT #1: Hmm, the changes were done to the files. An 'empty' board is shown on the bottom of the category as seen here (http://forums.runehordes.info/index.php). The redirection board is "ItloS 2 Tournament [www]" found here (http://forums.runehordes.info/index.php?board=37.0). Looks like a normal board.

"Target for the URL" isn't honored either :S.
Title: Re: Redirection Boards
Post by: rockinaway on April 28, 2006, 03:04:55 PM
has the download been updated with the last errors fixed?
Title: Re: Redirection Boards
Post by: rockinaway on April 28, 2006, 03:19:38 PM
still hasnt got rid of the SQL Problem

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
is_redirect = 1,
redirect_count_clicks = 0,
redirect_url = 'http' at line 17
File: /home/.endora/etcworld/etcworld.co.uk/forum/Sources/Subs-Boards.php
Line: 1066


And i have also removed Topic Ratings Mod, yet this error is still there!
Title: Re: Redirection Boards
Post by: Søren Bjerg on April 28, 2006, 05:31:45 PM
Odd, the new update worked for me (bar those issues described above) - with the Topic Ratings mod installed.
Title: Re: Redirection Boards
Post by: kober on May 05, 2006, 02:07:37 PM
Quote from: Søren Bjerg on April 28, 2006, 02:30:01 PM
An 'empty' board is shown on the bottom of the category [...]. Looks like a normal board.

"Target for the URL" isn't honored either :S.

I have the same problems the empty bord is marked with the green ;)

(http://terrarystyka.pl/show.jpg)
Title: Re: Redirection Boards
Post by: Vinspire^ on May 05, 2006, 11:38:19 PM
Can it work as a "thread redirection" ?
Title: Re: Redirection Boards
Post by: digit on May 07, 2006, 06:03:19 AM
Just a little trick here I figured out...  (may not good html though!!!)

If you want to redirect a board somewhere, NAME the board...

<a href="http://www.simplemachines.org/">Simple Machines!</a>

Works for me! ;)
Title: Re: Redirection Boards
Post by: L.G.S on May 07, 2006, 06:32:33 AM
Maybe you learnt that trick 2-3 pages back and myself and some others discussed it lol.
Title: Re: Redirection Boards
Post by: digit on May 07, 2006, 06:35:54 AM
oh really?  nope - I missed those...  figured it out on my own!   :P

(and I thought I was the smartest guy in the forum!  ;) :( ) 
Title: Re: Redirection Boards
Post by: winnet on May 08, 2006, 01:00:57 AM
just install the mods and found two problems, both in babylon theme (in classic theme work excelent)
1. in manage board, settings
when I check hide posts and topics, and click save, nothing happend, the refreshed page came with  box unchecked; as a result the redirected board does not display number of redirections in babylon theme, still display 0 posts and 0 topics
2.even I wrote _blank in target, the redirected board is not open in new window

as I said, in classic theme all is fine
no other mod installed, no errors at mod installation, no errors in logs

tks.
Title: Re: Redirection Boards
Post by: kochp on May 17, 2006, 02:23:09 AM
Quote from: kober on May 05, 2006, 02:07:37 PM
Quote from: Søren Bjerg on April 28, 2006, 02:30:01 PM
An 'empty' board is shown on the bottom of the category [...]. Looks like a normal board.

"Target for the URL" isn't honored either :S.

I have the same problems the empty bord is marked with the green ;)

(http://terrarystyka.pl/show.jpg)

I also have this problem with SMF 1.1 RC2 + Redirection Boards 2.0.
The redirection is child board "XTD Ratings" of the main board "Packages".
Is there any fix or workaround yet known for the problem?

(http://facileforms.biz/images/smfredirbug.png)

Title: Re: Redirection Boards
Post by: kochp on May 18, 2006, 02:15:33 PM
Quote from: digit on May 07, 2006, 06:03:19 AM
Just a little trick here I figured out...  (may not good html though!!!)
If you want to redirect a board somewhere, NAME the board...
<a href="http://www.simplemachines.org/">Simple Machines!</a>

Why did I overlook this at first hand?

Forget my request for a fix/patch in the post above, this works like a charm and makes the redirection package obsolete for me.  8)

Thanks for the tip!
Title: Re: Redirection Boards
Post by: Sindorf on May 21, 2006, 01:07:32 AM
Quote from: Slave To This on July 20, 2005, 03:22:01 AM
Since I don't seem to see anyone trying to resolve this issue themselves and until the mod writer steps in, here is a quick fix for you people who don't want post count to show on boards with zero posts and topics. now this isn't just for redirection boards it will do it for any board like this!

Open BoardIndex.template.php
Find

// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="smalltext" valign="middle" width="22%">';



and replace

if(empty($board['posts']) && empty($board['topics']))
{
echo '
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
</span></td>';
}
else
{
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>';}
echo'
<td class="smalltext" valign="middle" width="22%">';


Now hopefully that will make a few people happy! :) 

Also if you want something in place of nothing in the spot for 0 posts and 0 topics.  put something between


<span class="smalltext">

and

</span>


Any questions? :P

By the way this took me about 10 minutes to write and I have only used php for 4 months! :)

Try stuff out get yourselves a test forum and test things that is what it is there for..... and it is the best way to learn!

Now back to our regularly scheduled programming!

Hello,

This codes have some error in it. I have tried to correct them a bit...

Let's start from the beginning and see what can be done to remove that zero messages and zero posts things...

1. Open your BoardIndex.template.php

2. Find


// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' <br />
', $board['topics'],' ', $txt[330], '
</span></td>
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';


3. Replace this with the code below


// Remove zero posts

if(empty($board['posts']) && empty($board['topics']))
{
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
</span></td>';
}
else
{
// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">
', $board['posts'], ' ', $txt[21], ' ', $txt['smf88'], '<br />
', $board['topics'],' ', $txt[330], '
</span></td>';}
echo'
<td class="windowbg2" valign="middle" width="22%">
<span class="smalltext">';


Original credits are going to Slave To This (http://www.simplemachines.org/community/index.php?action=profile;u=12576), I just only made some corrections in the code...

Now it is working fine ;)
Title: Re: Redirection Boards
Post by: Oldiesmann on May 23, 2006, 11:43:53 AM
Quote from: kochp on May 17, 2006, 02:23:09 AM
Quote from: kober on May 05, 2006, 02:07:37 PM
Quote from: Søren Bjerg on April 28, 2006, 02:30:01 PM
An 'empty' board is shown on the bottom of the category [...]. Looks like a normal board.

"Target for the URL" isn't honored either :S.

I have the same problems the empty bord is marked with the green ;)

(http://terrarystyka.pl/show.jpg)

I also have this problem with SMF 1.1 RC2 + Redirection Boards 2.0.
The redirection is child board "XTD Ratings" of the main board "Packages".
Is there any fix or workaround yet known for the problem?

(http://facileforms.biz/images/smfredirbug.png)



Sorry for the delayed response... Did you get any errors when you went to install this? Are there any errors in your forum error log relating to this?
Title: Re: Redirection Boards
Post by: rockinaway on June 20, 2006, 12:12:46 PM
Please sort this mod out so it work properly!
Title: Re: Redirection Boards
Post by: tapirul on June 30, 2006, 03:19:26 AM
Quote from: Oldiesmann on May 23, 2006, 11:43:53 AM
Quote from: kochp on May 17, 2006, 02:23:09 AM
Quote from: kober on May 05, 2006, 02:07:37 PM
Quote from: Søren Bjerg on April 28, 2006, 02:30:01 PM
An 'empty' board is shown on the bottom of the category [...]. Looks like a normal board.

"Target for the URL" isn't honored either :S.

I have the same problems the empty bord is marked with the green ;)

(http://terrarystyka.pl/show.jpg)

I also have this problem with SMF 1.1 RC2 + Redirection Boards 2.0.
The redirection is child board "XTD Ratings" of the main board "Packages".
Is there any fix or workaround yet known for the problem?

(http://facileforms.biz/images/smfredirbug.png)



Sorry for the delayed response... Did you get any errors when you went to install this? Are there any errors in your forum error log relating to this?

I have the same problem, too. In the error log I get bunch of errors such as "Undefined index: is_redirect"; "Undefined index: topics" or, more detailed,
Quote8: Undefined index: is_redirect
File: /..../Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 181

ALL errors have this in common:

.../BoardIndex.template.php (main sub template - eval?)

If I modfy the boards (so they ar not anymore child boards), these errors do not appear anymore. And, oh, there's a bunch of errors for each user (registered/guest) navigating the forum... I didn't realize and I ended up with 300 pages of errors in couple of days....
Title: Re: Redirection Boards
Post by: L.G.S on July 05, 2006, 10:53:07 AM
Hey, I'm trying to add this mod to Dilber MC theme, but I'm having this problem.

<file name="$themedir/BoardIndex.template.php">
<operation>
<search position="replace"><![CDATA[
<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
]]></search>
<add><![CDATA[
<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
<b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
]]></add>


Except I have a problem..

This is the code in Dilber MC:

<td class="windowbg2" style="padding-top:12px; padding-bottom:12px;">

So what would I need to do to change this part so it works without template errors?
Title: Re: Redirection Boards
Post by: L.G.S on July 06, 2006, 01:07:54 PM
Please..
Title: Re: Redirection Boards
Post by: L.G.S on July 07, 2006, 06:19:20 PM
This thread is going to page 2 every day... can somebody help me???
Title: Re: Redirection Boards
Post by: L.G.S on July 10, 2006, 11:47:37 AM
6 days and still no beef :(
Title: Re: Redirection Boards
Post by: IamV on July 11, 2006, 03:43:28 AM
I added this mod to a SMF 1.1 RC2 board.  There were no errors when I installed it & it appears to be installed correctly.  However, when I try to make a board into a re-direct board no box appears to insert the target url into. 
Title: Re: Redirection Boards
Post by: RebelRose on July 24, 2006, 02:20:55 PM
Hello,

I am trying to install this on my theme but I cannot find this code on the BoardIndex.php

<file name="$themedir/BoardIndex.template.php">
      <operation>
         <search position="replace"><![CDATA[
            <td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board

Any idea's on what I should do here?
Title: Re: Redirection Boards
Post by: Arbalot on July 24, 2006, 02:27:26 PM
rebelrose have no similar code?
for example you try search
Quote<a href="', $board['href'],
Title: Re: Redirection Boards
Post by: RebelRose on July 24, 2006, 02:29:20 PM
Quote from: Arbalot on July 24, 2006, 02:27:26 PM
rebelrose have no similar code?
for example you try search
Quote<a href="', $board['href'],

yes I did and it said not found
Title: Re: Redirection Boards
Post by: Arbalot on July 24, 2006, 02:31:50 PM
hmm can u paste your boardindex.template.php here or pm?
Title: Re: Redirection Boards
Post by: RebelRose on July 24, 2006, 02:43:08 PM
Quote from: Arbalot on July 24, 2006, 02:31:50 PM
hmm can u paste your boardindex.template.php here or pm?

Well before I do that I am going to back through it without using the search feature and read it all myself. I would hate to post it on here and have it found. Thanks for offering to look though.

I will repost if I cannot find it.
Title: Re: Redirection Boards
Post by: L.G.S on July 28, 2006, 05:24:29 AM
any idea on my problem anyone?
Title: Re: Redirection Boards
Post by: PacificWx on July 28, 2006, 12:40:51 PM
SMF Version: SMF 1.1 RC2

Please see my next message:
Title: Re: Redirection Boards
Post by: PacificWx on July 29, 2006, 03:06:33 AM
SMF Version: SMF 1.1 RC2

Quote from: tapirul on June 30, 2006, 03:19:26 AM
Quote from: Oldiesmann on May 23, 2006, 11:43:53 AM
Sorry for the delayed response... Did you get any errors when you went to install this? Are there any errors in your forum error log relating to this?

I have the same problem, too. In the error log I get bunch of errors such as "Undefined index: is_redirect"; "Undefined index: topics" or, more detailed,
Quote8: Undefined index: is_redirect
File: /..../Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 181

ALL errors have this in common:

.../BoardIndex.template.php (main sub template - eval?)

If I modfy the boards (so they ar not anymore child boards), these errors do not appear anymore. And, oh, there's a bunch of errors for each user (registered/guest) navigating the forum... I didn't realize and I ended up with 300 pages of errors in couple of days....

Sorry to bump this - but this is the same error I and an affiliated site are getting also (note to self, must read back before posting).

and when trying to uninstall:

Quote12.     Execute Modification     ./Themes/default/languages/Help.english.php     Test failed
13.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test failed
Title: Re: Redirection Boards
Post by: IamV on August 01, 2006, 03:01:23 AM
Quote from: IamV on July 11, 2006, 03:43:28 AM
I added this mod to a SMF 1.1 RC2 board.  There were no errors when I installed it & it appears to be installed correctly.  However, when I try to make a board into a re-direct board no box appears to insert the target url into. 

Ok, I happenned to go in with a different browser.  When I use IE or FF, there is no box for the url.  If I use Opera, there is one!
Title: Re: Redirection Boards
Post by: Oldiesmann on August 03, 2006, 09:47:55 AM
I will take a look at everything when I get a chance and see if I can find any bugs that need fixing. I've been really busy and just haven't had time to do it yet.
Title: Re: Redirection Boards
Post by: JamesWC on August 05, 2006, 05:15:35 PM
Quote from: Oldiesmann on May 23, 2006, 11:43:53 AM
Quote from: kochp on May 17, 2006, 02:23:09 AM
Quote from: kober on May 05, 2006, 02:07:37 PM
Quote from: Søren Bjerg on April 28, 2006, 02:30:01 PM
An 'empty' board is shown on the bottom of the category [...]. Looks like a normal board.

"Target for the URL" isn't honored either :S.

I have the same problems the empty bord is marked with the green ;)

(http://terrarystyka.pl/show.jpg)

I also have this problem with SMF 1.1 RC2 + Redirection Boards 2.0.
The redirection is child board "XTD Ratings" of the main board "Packages".
Is there any fix or workaround yet known for the problem?

(http://facileforms.biz/images/smfredirbug.png)



Sorry for the delayed response... Did you get any errors when you went to install this? Are there any errors in your forum error log relating to this?

I am having this problem also. I did not get any errors when installing. The following series of errors appear in my error log, for the same user:


Today at 10:11:13 PM
8: Undefined index: is_redirect
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 193
   
Today at 10:11:13 PM
8: Undefined index: topics
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 173
   
Today at 10:11:13 PM
8: Undefined index: posts
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 172
   
Today at 10:11:13 PM
8: Undefined index: is_redirect
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 163
   
Today at 10:11:13 PM
8: Undefined index: is_redirect
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 158
   
Today at 10:11:13 PM
8: Undefined index: description
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 147
   
Today at 10:11:13 PM
8: Undefined index: name
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 146
   
Today at 10:11:13 PM
8: Undefined index: is_redirect
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 146
   
Today at 10:11:13 PM
8: Undefined index: id
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 146
   
Today at 10:11:13 PM
8: Undefined index: href
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 146
   
Today at 10:11:13 PM
8: Undefined index: is_redirect
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 145
   
Today at 10:11:13 PM
8: Undefined index: children_new
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 137
   
Today at 10:11:13 PM
8: Undefined index: new
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 134
   
Today at 10:11:13 PM
8: Undefined index: id
File: /home/wrestlin/public_html/uk/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 131
Title: Re: Redirection Boards
Post by: PacificWx on August 05, 2006, 05:22:35 PM
thank you Oldiesman :)

James, I moved everything to categories and boards (hence no child boards) - the errors are gone

but, I reckon we be patient, I am sure Oldiesman will get us a solution when he can
Title: Re: Redirection Boards
Post by: JamesWC on August 05, 2006, 05:28:46 PM
Quote from: PacificWx on August 05, 2006, 05:22:35 PMJames, I moved everything to categories and boards (hence no child boards) - the errors are gone

I'm not using child boards.

[I've removed the links in this post - if anybody wants to help, please let me know and I'll repost them]
Title: Re: Redirection Boards
Post by: Mad Mart on August 28, 2006, 05:25:12 PM
Any chance of an update 4 1.1 RC3?

Now incompatible...
Title: Re: Redirection Boards
Post by: anonim on September 04, 2006, 06:03:09 PM
any news? updates? or it is stalled until 1.1 final comes out.
Title: Re: Redirection Boards
Post by: Oldiesmann on September 18, 2006, 09:45:24 AM
I was really busy this summer and didn't have a chance to do anything with it. I am going to work on it today and hopefully fix all the bugs in it. Once the bugs have been fixed I'll update it to work with 1.0.8 and 1.1 RC3. Apologies for the delay :)
Title: Re: Redirection Boards
Post by: JamesWC on September 18, 2006, 10:34:36 AM
Thanks Oldiesmann, good luck with it. :D
Title: Re: Redirection Boards
Post by: jammedph on September 19, 2006, 10:20:09 PM
Hope this will be available on 1.1 RC3 very soon. This seems to be a nice mod.
Title: Re: Redirection Boards
Post by: a2h_ on September 25, 2006, 05:44:51 AM
This should be in there already, as IPB supports it in 1.3!. Now I just need to wait for RC3 release
Title: Re: Redirection Boards
Post by: Oldiesmann on September 27, 2006, 10:35:07 PM
I've been busy lately so I haven't had time to mess with it and fix the bugs. I'll try to work on it this weekend if I have time.

I've mentioned adding redirection boards as a default feature many times, but it seems that many team members don't feel it should be a default theme...
Title: Re: Redirection Boards
Post by: a2h_ on September 28, 2006, 07:33:43 AM
And I just sit there and watch at how my old invisionfree forum supported redirection... :-[
Title: Re: Redirection Boards
Post by: Oldiesmann on September 30, 2006, 02:34:14 PM
I just updated the mod. I think I've fixed all the bugs now, and it's also compatible with 1.0.8 and 1.1 RC3 as well. Please let me know if you run into any more problems and I'll try to fix them as soon as possible.
Title: Re: Redirection Boards
Post by: Nic- on October 01, 2006, 09:00:29 PM
thanks Oldiesmann , installed it with 1.1RC3 and worked fine  :D
thank youuuuuu~~~
Title: Re: Redirection Boards
Post by: Søren Bjerg on October 02, 2006, 01:28:51 AM
Awesome - better late than never :). Good work!
Title: Re: Redirection Boards
Post by: Oldiesmann on October 02, 2006, 05:46:17 PM
Thanks :)

Now I just have to figure out why the javascript to show the extra options doesn't work in IE...
Title: Re: Redirection Boards
Post by: Oldiesmann on October 02, 2006, 06:23:52 PM
Ah... Apparently IE doesn't support the "table-row" display property. That should be relatively easy to fix though...
Title: Re: Redirection Boards
Post by: Oldiesmann on October 02, 2006, 07:01:18 PM
Ok. Updated package to use the "block" display property in IE.
Title: Re: Redirection Boards
Post by: Chad on October 03, 2006, 10:23:43 PM
If I uninstall then reinstall this mod will I lose the redirection boards I already have?  How can I upgrade to the new one?
Title: Re: Redirection Boards
Post by: Oldiesmann on October 04, 2006, 10:26:29 AM
Unfortunately, you will lose the redirection boards you already have - they'll just be turned into normal boards. There were a lot of bugs in the previous version, so I didn't write an upgrade script for it, mainly because I didn't think that many people were using it.
Title: Re: Redirection Boards
Post by: Chad on October 04, 2006, 07:06:48 PM
Quote from: Oldiesmann on September 30, 2006, 02:34:14 PM
I just updated the mod. I think I've fixed all the bugs now, and it's also compatible with 1.0.8 and 1.1 RC3 as well. Please let me know if you run into any more problems and I'll try to fix them as soon as possible.

Did you change the version number?
Title: Re: Redirection Boards
Post by: Chad on October 04, 2006, 07:10:26 PM
I just removed the old one, downloaded the mod again, installed it but now when I click on "Make this board a redirection board" nothing happens.
Title: Re: Redirection Boards
Post by: Flying Drupalist on October 05, 2006, 07:06:49 AM

5.    Execute Modification    ./Sources/MessageIndex.php    Test failed

Are there ways to manually install?
Title: Re: Redirection Boards
Post by: Robotex on October 06, 2006, 01:59:08 PM
got this error when trying installing (but no warning)
Duplicate entry 'redirect_hide_columns' for key 1
File: /membri/robotex/smf/Packages/temp/RedirectPdb.php
Linea: 12

but i havent that entry in my smf_settings
Title: Re: Redirection Boards
Post by: chinclub on October 06, 2006, 05:02:36 PM
Quote from: Miraploy on October 05, 2006, 07:06:49 AM
5.    Execute Modification    ./Sources/MessageIndex.php    Test failed
Are there ways to manually install?

I get the same thing.  I am using the default theme with 1.1 RC3
Title: Re: Redirection Boards
Post by: 1964 on October 11, 2006, 08:34:26 AM
I had this installed already(1.1 RC3) and worked, but troubleshooting another issue had me uninstall all MODs, which solved the problem, but when I try to install now, I get...

7. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
9. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
10. Execute Modification ./Themes/babylon/MessageIndex.template.php Test failed
11. Execute Modification ./Themes/classic/BoardIndex.template.php Test failed
12. Execute Modification ./Themes/classic/MessageIndex.template.php Test failed

Thanks.
Title: Re: Redirection Boards
Post by: Oldiesmann on October 12, 2006, 01:17:25 PM
Let me go do some more testing and see what I can find. It installed fine on a clean SMF installation last I tried it, but maybe I missed something.
Title: Re: Redirection Boards
Post by: Oldiesmann on October 12, 2006, 01:55:46 PM
Fixed a parse error in 1.0.x. Tried installing it on clean installations of both 1.1 RC2 and 1.1 RC3 and didn't encounter any problems. If you want to manually install it, take a look at the included help.txt file (to make sure you understand the XML format) and then follow the instructions in modification_1-0.xml (for 1.0.x) or modification_1-1.xml (for 1.1 RC2 and 1.1 RC3).
Title: Re: Redirection Boards
Post by: 1964 on October 12, 2006, 03:56:25 PM
Thank you Oldiesmann, will look into that and see how hard it would be to do it manually, by the way, I removed babylon and classic themes for now.
Title: Re: Redirection Boards
Post by: Saxon North on October 19, 2006, 05:30:39 PM
Hi I've installed 2.0.1, everything comes back as "Test successful" on the checks but when I click on "Install now" I get the following error:

Duplicate entry 'redirect_hide_columns' for key 1
File: /home/uepengla/public_html/smf/Packages/temp/RedirectPdb.php
Line: 12

Under the "Installed Packages" menu I have Redirection Boards 2.0 listed there. If I click on Uninstall on the right I get the following error:

An Error Has Occurred!
Unable to find package file!

I'm presuming there's something left over from verson 2.0 but I don't know how to completely remove version 2 so that it doesn't show up in the uninstall list.

Any help would be appreciated.
Title: Re: Redirection Boards
Post by: pbcnx on October 21, 2006, 10:13:38 PM
Hmm.. i have this error after i installed the mod in my SMF 1.0.8.

Parse error: syntax error, unexpected '=' in /home/pbcnx/public_html/gafn/forum/Sources/ManageBoards.php on line 644

that happens when i click the "Manage Boards" Link in the Admin Center. Is there anyway to fix this?  ???

TIA  :)
Title: Re: Redirection Boards
Post by: Tanks on October 22, 2006, 04:19:19 AM
Im sorry to say this oldiesman but the file seems to be corrupt

When i upload it to my packages directory the package manager wont open

When i delete it the package manager opens fine

If i try to unpack the file winrar tells me that the file is corrupt... i downloaded the file about 5 or 6 times.. so im sure i got the file downloaded correct..

Can you look into this ?
Title: Re: Redirection Boards
Post by: LHW on October 23, 2006, 03:12:25 PM
I get the same error message as pbcnx, except on line 639.  I too am using v1.0.8, and it installed without any problems.  When I look at the file, this is what I have for line 639:

countPosts = $_POST[count], ID_CAT = $ID_CAT, ID_PARENT = $ID_PARENT,

This is it in context:

// Commit the changes.
if (!isset($_REQUEST['add']))
{

if($_POST['reset_clicks'] == 1)
{
// One last attempt to make this work... It won't work when I put it in the main query for whatever reasion...
$query = db_query("UPDATE {$db_prefix}boards SET redirect_clicks = '0' WHERE ID_BOARD = $_POST[ID_BOARD]", __FILE__, __LINE__);
}

db_query("
UPDATE {$db_prefix}boards
SET
name = '$_POST[board_name]', description = '$_POST[desc]', memberGroups = '" . implode(',', $_POST['groups']) . "',
is_redirect = $_POST[enable_redirect], redirect_count_clicks = $_POST[count_clicks], redirect_target = '$_POST[target]', redirect_url = '$_POST[url]'",
countPosts = $_POST[count], ID_CAT = $ID_CAT, ID_PARENT = $ID_PARENT,
childLevel = $childLevel, boardOrder = $spot, ID_THEME = $_POST[boardtheme], override_theme = $_POST[override_theme]
WHERE ID_BOARD = $_POST[ID_BOARD]
LIMIT 1", __FILE__, __LINE__);
}
else


Thanks in advance for helping resolve this.  :)
Title: Re: Redirection Boards
Post by: Oldiesmann on November 15, 2006, 04:52:09 PM
Sorry for the late response. I completely forgot about this (I've been busy the past few weeks). I see the problem - remove the " at the end of the line starting with is_redirect (I guess it would be line 638 in your case). I'll take a look at the package in a minute and if the problem is still there, I'll fix it.
Title: Re: Redirection Boards
Post by: Flying Drupalist on November 24, 2006, 07:58:52 PM
Hi, are there any updates to this?
Title: Re: Redirection Boards
Post by: Oldiesmann on November 29, 2006, 11:09:37 AM
I don't think that bug is there anymore, but I'll look at it again later to make sure. Also, if anyone knows about any other existing bugs, let me know. I'd like to get any remaining bugs fixed for 1.1 final...
Title: Re: Redirection Boards
Post by: Exsharaen on December 03, 2006, 01:51:58 PM
Hi, I upgraded my SMF from 1.0.8 to 1.1 and tried to install your mod, but it threw an error that it was not compatible. Will there be a version of this mod that is compatible for 1.1? Since my redirection boards are now broken and becomes ordinary boards.

Thank you.
Title: Re: Redirection Boards
Post by: Flying Drupalist on December 03, 2006, 11:11:13 PM
5.    Execute Modification    ./Sources/MessageIndex.php    Test failed

:(

RC3 and custom theme.
Title: Re: Redirection Boards
Post by: drhamad on December 10, 2006, 10:11:14 PM
So, this is NOT built into SMF 1.1?

If it is not built in, is this fully ready for 1.1 Final?
Title: Re: Redirection Boards
Post by: desert storm on December 13, 2006, 11:32:14 PM
I love this mod.  If someone could post an update for SMF 1.1 Final I would love them forever! 
Title: Re: Redirection Boards
Post by: Flying Drupalist on December 18, 2006, 08:25:23 PM
Hi could someone update this to the latest version please?
Title: Re: Redirection Boards
Post by: drhamad on December 19, 2006, 08:29:24 AM
The mod is actually unnecessary... if you put the html (<a href=http://whatever>urlname</a>) into the title blank, it creates a link.
Title: Re: Redirection Boards
Post by: anonim on December 19, 2006, 03:50:57 PM
yeah, you can do this, but will no count the visits, so it will be always shown 0 posts in 0 topics.
so none will enter/click this forum because it is displayed empty.
so a lot a visitors lost.

but, dont worry, when all the other mode will be updated, there are a little chance to be updated
Title: Re: Redirection Boards
Post by: Oldiesmann on December 19, 2006, 09:59:28 PM
I updated this mod for 1.1 final and 1.1.1 earlier...
Title: Re: Redirection Boards
Post by: Greek on December 20, 2006, 04:32:29 AM
I get these errors:
Title: Re: Redirection Boards
Post by: GravuTrad on December 20, 2006, 08:29:32 PM
Me this:

Duplicate entry 'redirect_hide_columns' for key 1
Fichier: Packages/temp/RedirectPdb.php
Ligne: 12

and

./babylon/BoardIndex.template.php     Skipping file
Title: Re: Redirection Boards
Post by: anonim on December 20, 2006, 09:59:35 PM
Quote from: Greek on December 20, 2006, 04:32:29 AM
I get these errors:

do you have the Board Viewer mode installed? if yes this is the cause for 2 of those errors.
Title: Re: Redirection Boards
Post by: Greek on December 21, 2006, 05:34:33 AM
Yes, I have it.
But to be honest I wouldn't like to uninstall it because of Redirection Boards.
Title: Re: Redirection Boards
Post by: anonim on December 21, 2006, 09:02:20 AM
then, you have to install this mod manually
even so, is a little tricky to make them both working
a better idea is to uninstall board viewer, install redirection board and after that reinstall the board viewer.
Title: Re: Redirection Boards
Post by: GravuTrad on December 21, 2006, 11:42:48 AM
Quote from: GravuTrad on December 20, 2006, 08:29:32 PM
Me this:

Duplicate entry 'redirect_hide_columns' for key 1
Fichier: Packages/temp/RedirectPdb.php
Ligne: 12

and

./babylon/BoardIndex.template.php     Skipping file

None as idea for this?
Title: Re: Redirection Boards
Post by: EdwinK on December 22, 2006, 07:35:26 AM
Get 'corrupted archive' when trying to install this.
Title: Re: Redirection Boards
Post by: leoedin on December 23, 2006, 06:59:20 PM
Hi

I installed this in RC2, upgraded to 1.1.1, tried to install it and it gave a database error about already existing...
Title: Re: Redirection Boards
Post by: drhamad on December 23, 2006, 11:19:12 PM
Quote from: leoedin on December 23, 2006, 06:59:20 PM
Hi

I installed this in RC2, upgraded to 1.1.1, tried to install it and it gave a database error about already existing...

That's because it already exists in the db and such... just make sure your file changes are still there.  This is why relying on package installs is a pain :)
Title: Re: Redirection Boards
Post by: GaMerZ on December 28, 2006, 04:43:39 AM
Test failed for
/Themes/default/BoardIndex.template.php
/Themes/default/MessageIndex.template.php

Any ideas?
Title: Re: Redirection Boards
Post by: Superdaantje on December 28, 2006, 02:20:07 PM
I get als this. Is there a fix for this
Quote
Duplicate entry 'redirect_hide_columns' for key 1
File: /home/vhosts/superdaantje.nl/httpdocs/forum/Packages/temp/RedirectPdb.php
Line: 12

I am using SMF version 1.1.1
Title: Re: Redirection Boards
Post by: Niteblade on December 29, 2006, 01:32:23 PM
Any plans to make a redirect threads ?
Title: Re: Redirection Boards
Post by: wicked1 on December 29, 2006, 04:26:23 PM
Quote from: Livebox on December 28, 2006, 02:20:07 PM
I get als this. Is there a fix for this
Quote
Duplicate entry 'redirect_hide_columns' for key 1
File: /home/vhosts/superdaantje.nl/httpdocs/forum/Packages/temp/RedirectPdb.php
Line: 12

I am using SMF version 1.1.1
I am getting the same error and I am also using 1.1.1
Title: Re: Redirection Boards
Post by: anonim on December 29, 2006, 11:19:05 PM
did you had this mod previous installed? in rc2, 3 maybe?
Title: Re: Redirection Boards
Post by: Superdaantje on December 30, 2006, 04:52:08 AM
no just trying to install it in 1.1.1
Title: Re: Redirection Boards
Post by: Oldiesmann on January 01, 2007, 05:45:14 PM
Quote from: GravuTrad on December 21, 2006, 11:42:48 AM
Quote from: GravuTrad on December 20, 2006, 08:29:32 PM
Me this:

Duplicate entry 'redirect_hide_columns' for key 1
Fichier: Packages/temp/RedirectPdb.php
Ligne: 12

and

./babylon/BoardIndex.template.php     Skipping file

None as idea for this?

That means it either didn't find the file or one of the tests failed. I have it set to skip the file if any errors occur because I don't want the mod to fail if you don't have that theme installed.

I will fix the database issue shortly. Sorry about that :)

Livebox - what other mods do you have installed?
Title: Re: Redirection Boards
Post by: Superdaantje on January 02, 2007, 12:23:42 AM
Many thanks ;)

Other MOds are
-Youtube
-Googlevideo
-Reason For Editing Mod
-Custom Profile Field Mod


Title: Re: Redirection Boards
Post by: GravuTrad on January 03, 2007, 07:21:34 PM
Great, thanks oldiesmann.
Title: Re: Redirection Boards
Post by: Superdaantje on January 05, 2007, 09:54:31 AM
Oldiesmann I hope you have something with the info I gave you. I hope you can fix it soon the SQL..  Many thanks that you will take a look @ it ;)
Title: Re: Redirection Boards
Post by: Exsharaen on January 07, 2007, 09:36:58 AM
Same error here in SMF 1.1.1, duplicate entry... Oh, by the way, I installed one in plain SMF 1.1 and it was successful, but I didn't find the modifications there...
EDIT: I found it, apparently I forgot to change my language to English first before...

Maybe you can use INSERT IGNORE INTO ...  for the SQL? (but I think the SQL itself must be rewritten to resolve this error.)

Thanks for this mod, I really like it. They should have been included it as a default feature...
Title: Re: Redirection Boards
Post by: GravuTrad on January 07, 2007, 11:08:55 PM
Yes really, it should be a default option... ;)
Title: Re: Redirection Boards
Post by: mrselnombre on January 10, 2007, 05:12:02 PM
has anyone tried a manual install for this.
Title: Re: Redirection Boards
Post by: Oldiesmann on January 13, 2007, 07:54:12 PM
Just updated the mod to fix a couple minor issues. It should install fine now even when MySQL is running in strict mode. I also fixed the problems causing the "undefined index: boardName" errors. Thanks to akabugeyes for pointing them out :)
Title: Re: Redirection Boards
Post by: mrselnombre on January 14, 2007, 03:06:02 AM
i've uploaded the package and get
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    RedirectPdb.php    
2.    Execute Modification    -    Modification parse error
Title: Re: Redirection Boards
Post by: mrselnombre on January 14, 2007, 07:46:37 AM
There are a few mistake in the xml files, postion instead of position.
Still getting the error so will keep looking for more.
Title: Re: Redirection Boards
Post by: GravuTrad on January 15, 2007, 03:54:47 PM
Ok i test it...
Title: Re: Redirection Boards
Post by: GravuTrad on January 15, 2007, 04:05:26 PM
skipped boardindex.template.php and this error:

Duplicate entry 'redirect_hide_columns' for key 1
Fichier: /Packages/temp/RedirectPdb.php
Ligne: 12


Always the same database problem for me so...
Title: Re: Redirection Boards
Post by: mrselnombre on February 06, 2007, 01:14:47 PM
can we have this fixed pretty please
Title: Re: Redirection Boards
Post by: Superdaantje on February 07, 2007, 12:38:10 PM
Please is ther some one that has a fix for this ? ;)
Title: Re: Redirection Boards
Post by: WhatsUp on February 09, 2007, 10:24:43 AM
I'd appreciate somebody satisfying my curiosity: what purpose is served by redirecting a visitor away from a board?
I've read the entire topic and still haven't any idea as to the mod's purpose, even though it is clear many find it important.

Thanks!
Title: Re: Redirection Boards
Post by: JamesWC on February 09, 2007, 10:31:19 AM
Many sites have affiliates/link exchanges with other sites, and this is a handy way of displaying those links and keeping track of how well you're holding up your end of the deal.
Title: Re: Redirection Boards
Post by: mrselnombre on February 10, 2007, 10:08:07 AM
It also looks a lot better than an empty section too.
Title: Re: Redirection Boards
Post by: Superdaantje on February 10, 2007, 02:51:30 PM
found the solution for the problem ;) The problem was that I all ready installed it. So I had to remove some tables.
What I have don is I changed on line 12
INSERT INTO to  REPLACE INTO

This is wat I have removed out of the smf_board tabel See screenshot

Before you do this make a backup first ;)
Title: Re: Redirection Boards
Post by: mrselnombre on February 10, 2007, 03:50:50 PM
i can't get it to install in packages because there is a parse error inthe install xml somewhere. I can't find it
Title: Re: Redirection Boards
Post by: GravuTrad on February 11, 2007, 04:05:30 PM
Hi oldies. Have you looked for updating the mod?
Title: Re: Redirection Boards
Post by: Superdaantje on February 11, 2007, 04:34:30 PM
just try what I did ;)

It worked for me. And for an User off my board  
Title: Re: Redirection Boards
Post by: GravuTrad on February 11, 2007, 04:46:06 PM
Me, my bdd bug has not been corrected by oldies...
Title: Re: Redirection Boards
Post by: Superdaantje on February 12, 2007, 12:24:09 AM
I also had this problem. And it is fixed by checking the SQL database. The entry's where all ready there. remove them make the changes to RedirectPdb.php. and try it again.

QuoteDuplicate entry 'redirect_hide_columns' for key 1
File: /home/vhosts/superdaantje.nl/httpdocs/forum/Packages/temp/RedirectPdb.php
Line: 12
Title: Re: Redirection Boards
Post by: mrselnombre on February 12, 2007, 02:16:43 AM
are you using the old pacakge or the new one..
and are you doing a manual install?
Title: Re: Redirection Boards
Post by: Superdaantje on February 12, 2007, 11:26:19 AM
I use the new one. I did the normal install. and made the changes for my theme by hand
Title: Re: Redirection Boards
Post by: sgtschulze on February 13, 2007, 11:22:03 PM
Quote from: Livebox on February 10, 2007, 02:51:30 PM
found the solution for the problem ;) The problem was that I all ready installed it. So I had to remove some tables.
What I have don is I changed on line 12
INSERT INTO to  REPLACE INTO

This is wat I have removed out of the smf_board tabel See screenshot

Before you do this make a backup first ;)

Works perfect. I upgraded from RC3 to 1.1.2 and received similar "duplicate entry" error when trying to install the package.

Did these two little tricks....wham..back in business!

Good Job!
Title: Re: Redirection Boards
Post by: Superdaantje on February 14, 2007, 12:22:40 AM
Oke Good to here it works also for you ;)
Title: Re: Redirection Boards
Post by: Oldiesmann on February 14, 2007, 12:51:23 AM
Sorry for not responding to this sooner. I thought I was subscribed to this topic, but I guess I wasn't.

The "modification parse error" issue seems to be a bug with the package manager and PHP 5.2 - several other people reported that problem with PHP 5.2 with my G2 integration package, and I ran into that problem with the package on my test box (the package installs fine on other versions). Haven't tried it since 1.1.2 was released, so I'm not sure if the package manager bug that was fixed there also fixes that particular problem or not.

I will update the package tomorrow to install on 1.1.2 and also to check for columns and settings before trying to insert them.

Are there any other bugs that need to be addressed/fixed while I'm at it?
Title: Re: Redirection Boards
Post by: Superdaantje on February 14, 2007, 04:48:16 AM
No problem ;) 

It is is working now  ;D
Title: Re: Redirection Boards
Post by: mrselnombre on February 14, 2007, 04:59:57 AM
as i can't install (i'm assuming the php5 problem) and i haven't got the time at the moment to do it manually i have no idea if there are any other bugs.
Title: Re: Redirection Boards
Post by: mrselnombre on February 14, 2007, 06:07:46 AM
i set it to php4 for the sake of trying it, and i noticed a problem with it being added to the classic template.
It still shows 0 posts and 0 views (i checked the code it is all there)

and the error log gets lots of
8: Undefined index: board
File: /home/totaltwa/public_html/board/Themes/default/shout.template.php (main sub template - eval?)
Line: 153
which is relevant to this area of boardindex.template.php
      <td class="windowbg" valign="middle" align="center" width="6%">', $context['board']['is_redirect'] ? '--' : $board['topics'], '</td>
      <td class="windowbg" valign="middle" align="center" width="6%">', $context['board']['is_redirect'] ? '--' : $board['posts'], '</td>';

Nothing to do with the shoutbox, as i get it on other templates without the shoutbox too, always references those lines.
Title: Re: Redirection Boards
Post by: bodie2003 on February 14, 2007, 09:52:28 AM
Current Problem!:

Install Actions
Installations actions for "Redirection Boards":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: Redirection Boards
Post by: GravuTrad on February 14, 2007, 09:19:35 PM
Always Duplicate entry 'redirect_hide_columns' for key 1
Fichier: /Packages/temp/RedirectPdb.php
Ligne: 12
Title: Re: Redirection Boards
Post by: Oldiesmann on February 15, 2007, 05:22:21 PM
I haven't updated the package yet - I got sidetracked upgrading one of my sites last night. Give me a few minutes and I'll upgrade it for 1.1.2 and fix that redirect_hide_columns issue.
Title: Re: Redirection Boards
Post by: Oldiesmann on February 15, 2007, 06:14:47 PM
Package has been updated and should install fine on 1.1.2 - it now checks for the redirect_hide_columns setting and the various redirect columns in the boards table before trying to add/create them. I also fixed the typo with the classic theme (it should be $board['is_redirect'] and not $context['board']['is_redirect']).

Let me know if you run into any other problems.
Title: Re: Redirection Boards
Post by: RoarinRow on February 15, 2007, 07:28:11 PM
Quote from: Oldiesmann on February 15, 2007, 06:14:47 PM
Package has been updated and should install fine on 1.1.2 - it now checks for the redirect_hide_columns setting and the various redirect columns in the boards table before trying to add/create them. I also fixed the typo with the classic theme (it should be $board['is_redirect'] and not $context['board']['is_redirect']).

Let me know if you run into any other problems.

I got a message that said this file is corrrupt or not compatible with your version of SMF, something like that.  When I opened up the package.info.xml  I noticed that the install line had this 1,1,2 instead of 1.1.2.  I repackaged myself, uploaded, and it worked.
Title: Re: Redirection Boards
Post by: Oldiesmann on February 15, 2007, 10:43:06 PM
Whoops! It's fixed now :)
Title: Re: Redirection Boards
Post by: GravuTrad on February 16, 2007, 09:34:40 AM
Ok, i test and answer....
Title: Re: Redirection Boards
Post by: GravuTrad on February 16, 2007, 09:46:27 AM
arf, still a little problem for me:

Duplicate column name 'is_redirect'
Fichier: /Packages/temp/RedirectPdb.php
Ligne: 44
Title: Re: Redirection Boards
Post by: mrselnombre on February 17, 2007, 07:22:44 AM
worked like a charm for me
Title: Re: Redirection Boards
Post by: Superdaantje on February 17, 2007, 08:55:47 AM
Quote from: GravuTrad on February 16, 2007, 09:46:27 AM
arf, still a little problem for me:

Duplicate column name 'is_redirect'
Fichier: /Packages/temp/RedirectPdb.php
Ligne: 44


Follow the instructions I wrote earlier in this topic. Did you tried this? It works for me and some other boards I have updated last few days.
Title: Re: Redirection Boards
Post by: GravuTrad on February 17, 2007, 11:38:46 AM
Sorry i forgotten it but i will try.

But there's correction to oldies to do...
Title: Re: Redirection Boards
Post by: santa on February 23, 2007, 06:26:05 AM
if i check the option "Hide "posts" and "topics" for redirection boards" in boards settings, it checks the previous "Enable recycling of deleted topics" and not the correct checkbox i clicked...

i have smf 1.1.2 installed
Title: Re: Redirection Boards
Post by: santa on February 26, 2007, 07:12:17 AM
bump...
Title: Re: Redirection Boards
Post by: Greenman on February 27, 2007, 04:25:44 AM
I just installed the newest version (2.0.1) on my SMF 1.1.2 and get the following text above every page on my message board:

Quote$txt['redirected_click'] = '1 redirected click'; $txt['redirected_clicks'] = ' redirected clicks'; $txt['redirect_count_clicks'] = 'Count all clicks?'; $txt['redirect_count_clicks_desc'] = 'This will keep track of how many times the board redirects your users'; $txt['redirect_enable'] = 'Make this board a redirection board'; $txt['redirect_enable_desc'] = 'This will redirect any user attempting to access this board to a URL of your choice'; $txt['redirect_location'] = 'URL to redirect user to'; $txt['redirect_hide_columns'] = 'Hide "posts" and "topics" for redirection boards'; $txt['redirect_no_child'] = 'Redirection boards can\'t have child boards!'; $txt['redirect_no_url'] = 'Redirection boards must have a URL!'; $txt['redirect_reset_clicks'] = 'Reset click count'; $txt['redirect_reset_clicks_desc'] = 'This will reset the click count to 0.'; $txt['redirect_target'] = 'Target for the URL'; $txt['redirect_target_desc'] = 'The target for the redirection link (ie _blank)';

Oh and all text size on the forum is somehow turned to large if not larger than large.


I have the following other mods installed:
- SMF Arcade 2.0.7  
- SMF Gallery Lite 1.7.1   
- Member Awards 1.0.2   
- Related Topics 1.1.1  (which doesn't work but thats for another topic)
- Enchanced post template 1.0.2  
- Custom Profile Field Mod 3.16

However.. when all mods are uninstalled and this mod is installed, the same thing happens.


Help? ::) :'( :( ???


*error fixed.
For an odd reason it added that AFTER "?>" in the Modifications.english.php.
Title: Re: Redirection Boards
Post by: CaNe on March 10, 2007, 12:29:53 AM
when i installed this mod i get this error.

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Code    RedirectPdb.php    
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./babylon/BoardIndex.template.php    Skipping file
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
   
What can i do to make this mod work?
Title: Re: Redirection Boards
Post by: CaNe on March 10, 2007, 06:11:02 PM
Hmmmm anyone?
Title: Re: Redirection Boards
Post by: GravuTrad on March 10, 2007, 06:12:41 PM
have you any mod installed on your forum?
Title: Re: Redirection Boards
Post by: CaNe on March 11, 2007, 05:11:37 PM
Yeah i have a few installed on my forum.
Title: Re: Redirection Boards
Post by: Greenman on March 13, 2007, 04:58:46 AM
^ Then obviously they might be causing it... :-\


Anyways, I fixed my above error, but now everytime I view any board I get:
QuoteParse error: syntax error, unexpected ',' in /.../Themes/babylon/MessageIndex.template.php on line 111

and here is line 111:
Quoteecho ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>', $board['redirect_clicks'], '</b> ', $txt['redirected_clicks']);


I don't see anything wrong with it, and tried taking out the ","s one by one and all together, but they need to be there for things to work properly.

help? :(
Title: Re: Redirection Boards
Post by: CaNe on March 14, 2007, 04:04:18 AM
Quote from: Greenman on March 13, 2007, 04:58:46 AM
^ Then obviously they might be causing it... :-\


Anyways, I fixed my above error, but now everytime I view any board I get:
QuoteParse error: syntax error, unexpected ',' in /.../Themes/babylon/MessageIndex.template.php on line 111

and here is line 111:
Quoteecho ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>', $board['redirect_clicks'], '</b> ', $txt['redirected_clicks']);


I don't see anything wrong with it, and tried taking out the ","s one by one and all together, but they need to be there for things to work properly.

help? :(

Umm actually this is the mod i tryed to install first before any others and this is what i got. i uninstalled all my other mods and retryed still the same thing.
Title: Re: Redirection Boards
Post by: K3TK3TK3T on March 18, 2007, 01:35:39 PM
hi, whenever i try to install this, it works great, but only on the default theme, i want to get it on helios multi, for tiny portal, here's my problem:

Code (error) Select
Parse error: parse error, unexpected T_ELSEIF in /home/towerofb/public_html/skull09/forum/Themes/helios_multi11final_tp/BoardIndex.template.php on line 360

and heres my BoardIndex.template.php


<?php
// Version: 1.1; BoardIndex

function template_main()
{
        global 
$context$settings$options$txt$scripturl$modSettings;


        
$topbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 16px; width: 22px;"><img src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft.gif" style="height: 16px; width: 22px; border: 0px; padding: 0px; margin: 0px;" alt="gfx" /></td><td style="height: 16px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid.gif); "></td><td style="height: 16px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright.gif" style="height: 16px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr><tr><td style="width: 22px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midleft.gif); "></td><td valign="top">';
        
$botbox='</td><td style="width: 27px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-midright.gif); "></td></tr><tr><td style="height: 14px; width: 22px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botleft.gif" style="height: 14px; width: 22px; border: 0px; padding: 0px; margin: 0px;" /></td><td style="height: 14px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botmid.gif); "></td><td style="height: 14px; width: 27px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-botright.gif" style="height: 14px; width: 27px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        
$leftbox='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="height: 54px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-lefttop.gif" style="height: 54px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td nowrap="nowrap" style="text-align: center; height: 54px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-midtop.gif); ">';
        
$rightbox='</td><td style="height: 54px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-topright.gif" style="height: 54px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        
$leftboxbot='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 5px; height: 78px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botleft.gif" style="height: 78px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 78px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botmid.gif); ">';
        
$rightboxbot='</td><td style="height: 78px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-board-botright.gif" style="height: 78px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';

        
$leftboxbot2='<table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding-left: 4px; height: 36px; width: 72px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topleft-40.gif" style="height: 36px; width: 72px; border: 0px; padding: 0px; margin: 0px;" /></td><td valign="top" nowrap="nowrap" style="text-align: center; height: 36px; background-image: url('.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topmid-41.gif); ">';
        
$rightboxbot2='</td><td style="padding-right: 0px; height: 36px; width: 79px;"><img alt="gfx" src="'.$settings['images_url'].'/pod/'.$options['theme_color'].'/pod-info-topright-42.gif" style="height: 36px; width: 79px; border: 0px; padding: 0px; margin: 0px;" /></td></tr></table>';


        
// Show some statistics next to the link tree if SP1 info is off.
        
echo $leftbox.'
<table width="100%" cellpadding="0" cellspacing="0">
        <tr>
                <td style="text-align: left; padding-left: 0px;" valign="bottom">'
theme_linktree(), '</td>
        </tr>
</table>'
.$rightbox;

        
// Show the news fader?  (assuming there are things to show...)
        
if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
        {
                echo 
$topbox;
                echo 
'
<div style="padding: 0px; margin-bottom: 2px;">
        <table border="0" width="100%" cellspacing="1" cellpadding="4">
                <tr>
                        <td align="left" style="font-weight: bold;">&nbsp;&nbsp;'
$txt[102], '</td>
                </tr>
                <tr>
                        <td valign="middle" align="center" height="60">'
;

                
// Prepare all the javascript settings.
echo '
<div id="smfFadeScroller" style="width: 90%; padding: 2px;"><b>'
$context['news_lines'][0], '</b></div>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
// The fading delay (in ms.)
var smfFadeDelay = '
, empty($settings['newsfader_time']) ? 5000 $settings['newsfader_time'], ';
// Fade from... what text color? To which background color?
                                        var smfFadeFrom = {"r": 255, "g": 255, "b": 255}, smfFadeTo = {"r": 0, "g": 0, "b": 0};
                                        // Surround each item with... anything special?
                                        var smfFadeBefore = "<b>", smfFadeAfter = "</b>";

                                        var foreColor, backEl, backColor;

                                        if (typeof(document.getElementById(\'smfFadeScroller\').currentStyle) != "undefined")
                                        {
                                                foreColor = document.getElementById(\'smfFadeScroller\').currentStyle.color.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (backEl.currentStyle.backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = backEl.currentStyle.backgroundColor.match(/#([\da-f][\da-f])([\da-f][\da-f])([\da-f][\da-f])/);
                                                smfFadeTo = {"r": eval("0x" + backColor[1]), "g": eval("0x" + backColor[2]), "b": eval("0x" + backColor[3])};
                                        }
                                        else if (typeof(window.opera) == "undefined" && typeof(document.defaultView) != "undefined")
                                        {
                                                foreColor = document.defaultView.getComputedStyle(document.getElementById(\'smfFadeScroller\'), null).color.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeFrom = {"r": parseInt(foreColor[1]), "g": parseInt(foreColor[2]), "b": parseInt(foreColor[3])};

                                                backEl = document.getElementById(\'smfFadeScroller\');
                                                while (document.defaultView.getComputedStyle(backEl, null).backgroundColor == "transparent" && typeof(backEl.parentNode) != "undefined" && typeof(backEl.parentNode.tagName) != "undefined")
                                                        backEl = backEl.parentNode;

                                                backColor = document.defaultView.getComputedStyle(backEl, null).backgroundColor.match(/rgb\((\d+), (\d+), (\d+)\)/);
                                                smfFadeTo = {"r": parseInt(backColor[1]), "g": parseInt(backColor[2]), "b": parseInt(backColor[3])};
                                        }
                                        // List all the lines of the news for display.
                                        var smfFadeContent = new Array(
                                                "'
implode('",
                                                "'
$context['fader_news_lines']), '"
                                        );
                                // ]]></script>
                                <script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/fader.js"></script>
                        </td>
                </tr>
        </table>
</div>'
;
echo 
$botbox;
        }

        
/* Each category in categories is made up of:
                id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
                new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down iamge),
                and boards. (see below.) */
        
echo $topbox;
        foreach (
$context['categories'] as $category)
        {
                echo 
'
<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="6">
        <tr>
                <td colspan="2" class="catbg'
$category['new'] ? '2' '''" height="18">';

                
// If this category even can collapse, show a link to collapse it.
                
if ($category['can_collapse'])
                        echo 
'
                        <a href="'
$category['collapse_href'], '">'$category['collapse_image'], '</a>';

                echo 
'
                        '
$category['link'], '
                </td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[21], '</b></td>
                <td width="4%" class="catbg'
$category['new'] ? '2' '''"><b>' ,$txt[330], '</b></td>
                <td width="22%" align="center" class="catbg'
$category['new'] ? '2' '''"> '$txt[22], '</td>
        </tr>'
;

                
// Assuming the category hasn't been collapsed...
                
if (!$category['is_collapsed'])
                {
                        
/* Each board in each category's boards has:
                                new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
                                children (see below.), link_children (easier to use.), children_new (are they new?),
                                topics (# of), posts (# of), link, href, and last_post. (see below.) */
                        
foreach ($category['boards'] as $board)
                        {
                                echo 
'
        <tr class="windowbg2">
                <td class="windowbg" width="6%" align="center" valign="top"><a href="'
$scripturl'?action=unread;board='$board['id'], '.0">';

                                
// If the board is new, show a strong indicator.
                                
if ($board['new'])
                                        echo 
'<img src="'$settings['images_url'], '/on.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
                                
// This board doesn't have new posts, but its children do.
                                
elseif ($board['children_new'])
                                        echo 
'<img src="'$settings['images_url'], '/on2.gif" alt="'$txt[333], '" title="'$txt[333], '" border="0" />';
                                
// No new posts at all!  The agony!!
                                
else
                                        echo 
'<img src="'$settings['images_url'], '/off.gif" alt="'$txt[334], '" title="'$txt[334], '" border="0" />';

                                echo 
'</a></td>
<td '
$board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' '' '>
<b><a href="'
$board['href'], '" name="b'$board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' $board['redirect_target'] . '"' '' '>'$board['name'], '</a></b><br />
                        '
$board['description'];

                                
// Show the "Moderators: ".  Each has name, href, link, and id. (but we're gonna use link_moderators.)
                                
if (!empty($board['moderators']))
                                        echo 
'
                        <div style="padding-top: 1px;" class="smalltext"><i>'
count($board['moderators']) == $txt[298] : $txt[299], ': 'implode(', '$board['link_moderators']), '</i></div>';

                                
// Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
                                
if (!empty($board['children']))
                                {
                                        
// Sort the links into an array with new boards bold so it can be imploded.
                                        
$children = array();
                                        
/* Each child in each board's children has:
                                                id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                                        
foreach ($board['children'] as $child)
                                        {
                                                
$child['link'] = '<a href="' $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' $txt[330] . ': ' $child['topics'] . ', ' $txt[21] . ': ' $child['posts'] . ')">' $child['name'] . '</a>';
                                                
$children[] = $child['new'] ? '<b>' $child['link'] . '</b>' $child['link'];
                                        }

                                        echo 
'
                        <div style="padding-top: 1px;" class="smalltext"><i>'
$txt['parent_boards'], ': 'implode(', '$children), '</i></div>';
                                }

                           
// Show some basic information about the number of posts, etc.
echo '
</td>'
;

if(!$board['is_redirect'] || !$modSettings['redirect_hide_columns'])
{
echo '
<td class="windowbg" valign="middle" align="center" style="width: 12ex;"><span class="smalltext">'
;

if($board['is_redirect'])
{
/* We're not hiding columns, but this is a redirection board and we can't have posts
or topics, so just show "--" instead (ala IPB) */
echo '--';
}
else
{
echo '
'
$board['posts'], ' '$txt[21], ' <br />
'
$board['topics'],' '$txt[330];
}

echo '
</span></td>'
;
}

echo '                <td class="smalltext" valign="middle" width="25%" style="padding-left: 12px;">';

                                
/* The board's and children's last_post's have:
                                        time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
                                        link, href, subject, start (where they should go for the first unread post.),
                                        and member. (which has id, name, link, href, username in it.) */
                                
if (!empty($board['last_post']['id']) && !$board['is_redirect'])

                                        echo 
$board['last_post']['time'], '<br />
                       <b>'
$board['last_post']['link'], '</b> '$txt[525], '
                       '
$board['last_post']['member']['link'];

                                echo 
'
                </td>
        </tr>'
;
                        }
                }

                echo 
'
</table></div>'
;
        }

        echo 
$botbox;

        echo 
$leftboxbot;
        if (
$context['user']['is_logged'])
        {
                echo 
'
<div style="padding-top: 16px;"><table border="0" width="100%" cellspacing="0" cellpadding="0" valign="top">
        <tr>
                <td align="left" class="smalltext" valign="top">
                        <img src="' 
$settings['images_url'] . '/new_some.gif" alt="" align="absmiddle" border="0" /> '$txt[333], '
                        <img src="' 
$settings['images_url'] . '/new_none.gif" alt=""  align="absmiddle" border="0" style="margin-left: 4ex;" /> '$txt[334], '
                </td>
                <td align="right" class="smalltext">'
;
                
// Show the mark all as read button?
if ($settings['show_mark_read'] && !empty($context['categories']))
                        echo 
'
                        <a href="'
$scripturl'?action=markasread;sa=all;sesc=' $context['session_id'] . '">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/markread.gif" alt="' $txt[452] . '" border="0" />' $txt[452]), '</a>';
                echo 
'
                </td>
        </tr>
</table></div>'
;
        }
        else
           echo 
'<div style="padding: 0px;"><table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr>
                <td align="left" class="smalltext">

                </td>
                <td align="right" class="smalltext">
                </td>
        </tr>
</table></div>'
;
echo 
$rightboxbot;

        
// Here's where the "Info Center" starts...

       
echo $leftboxbot2.'<div style="font-weight: bold; text-align: center;">'.$txt[685].'</div>'.$rightboxbot2;

       echo 
'<div style="padding-left: 0px; padding-right: 0px;">'.$topbox;
       echo 
'

<div class="tborder"><table border="0" width="100%" cellspacing="1" cellpadding="4"> '
;

        
// This is the "Recent Posts" bar.
        
if (!empty($settings['number_recent_posts']))
        {
                echo 
'
        <tr>
                <td class="catbg" colspan="2">'
$txt[214], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="'
$scripturl'?action=recent">
                                <img src="'
$settings['images_url'], '/post/xx.gif" alt="'$txt[214], '" border="0" /></a>
                </td>
                <td class="windowbg2">'
;

                
// Only show one post.
                
if ($settings['number_recent_posts'] == 1)
                {
                        
// latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (it's id.)
                        
echo '
                        <b><a href="'
$scripturl'?action=recent">'$txt[214], '</a></b>
                        <div class="smalltext">
                                '
$txt[234], ' &quot;'$context['latest_post']['link'], '&quot; '$txt[235], ' ('$context['latest_post']['time'], ')<br />
                        </div>'
;
                }
                
// Show lots of posts.
                
elseif (!empty($context['latest_posts']))
                {
                        echo 
'
                        <table width="100%" border="0">'
;
                        
/* Each post in latest_posts has:
                                board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
                                subject, short_subject (shortened with...), time, link, and href. */
                        
foreach ($context['latest_posts'] as $post)
                                echo 
'
                                <tr>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">['
$post['board']['link'], ']</td>
                                        <td class="smalltext" valign="top">'
$post['link'], ' '$txt[525], ' '$post['poster']['link'], '</td>
                                        <td class="smalltext" align="right" valign="top" nowrap="nowrap">'
$post['time'], '</td>
                                </tr>'
;
                        echo 
'
                        </table>'
;
                }
                echo 
'
                </td>
        </tr>'
;
        }

        
// Show information about events, birthdays, and holidays on the calendar.
        
if ($context['show_calendar'])
        {
                echo 
'
        <tr>
                <td class="catbg" colspan="2">'
$context['calendar_only_today'] ? $txt['calendar47b'] : $txt['calendar47'], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="'
$scripturl'?action=calendar">
                                <img src="'
$settings['images_url'], '/icons/calendar.gif" alt="'$txt['calendar24'], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <span class="smalltext">'
;

                
// Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
                
if (!empty($context['calendar_holidays']))
                        echo 
'
                                <span style="color: #'
$modSettings['cal_holidaycolor'], ';">'$txt['calendar5'], ' 'implode(', '$context['calendar_holidays']), '</span><br />';

                
// People's birthdays.  Like mine.  And yours, I guess.  Kidding.
                
if (!empty($context['calendar_birthdays']))
                {
                        echo 
'
                                <span style="color: #'
$modSettings['cal_bdaycolor'], ';">'$context['calendar_only_today'] ? $txt['calendar3'] : $txt['calendar3b'], '</span> ';
                        
/* Each member in calendar_birthdays has:
                                id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
                        
foreach ($context['calendar_birthdays'] as $member)
                                echo 
'
                                <a href="'
$scripturl'?action=profile;u='$member['id'], '">'$member['is_today'] ? '<b>' ''$member['name'], $member['is_today'] ? '</b>' '', isset($member['age']) ? ' (' $member['age'] . ')' '''</a>'$member['is_last'] ? '<br />' ', ';
                }
                
// Events like community get-togethers.
                
if (!empty($context['calendar_events']))
                {
                        echo 
'
                                <span style="color: #'
$modSettings['cal_eventcolor'], ';">'$context['calendar_only_today'] ? $txt['calendar4'] : $txt['calendar4b'], '</span> ';
                        
/* Each event in calendar_events should have:
                                title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
                        
foreach ($context['calendar_events'] as $event)
                                echo 
'
'
$event['can_edit'] ? '<a href="' $event['modify_href'] . '" style="color: #FF0000;">*</a> ' ''$event['href'] == '' '' '<a href="' $event['href'] . '">'$event['is_today'] ? '<b>' $event['title'] . '</b>' $event['title'], $event['href'] == '' '' '</a>'$event['is_last'] ? '<br />' ', ';

                        
// Show a little help text to help them along ;).
                        
if ($context['calendar_can_edit'])
                                echo 
'
                                (<a href="'
$scripturl'?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">'$txt['calendar_how_edit'], '</a>)';
                
                echo 
'
                        </span>
                </td>
        </tr>'
;


elseif ($board['is_redirect'])
{
if($board['redirect_count_clicks'])
{
// How many redirected clicks? We have to be grammatically correct, you know ;)
echo ($board['redirect_clicks'] == $txt['redirected_click'] : '<b>' $board['redirect_clicks'] . '</b> ' $txt['redirected_clicks']);
}
else
{
// For now, just show this filler text. I'll probably do more with this in the next version...
echo 'N/A';
}
}
}


        
// Show a member bar.  Not heavily ornate, but functional at least.
        
if ($settings['show_member_bar'])
        {
                echo 
'
        <tr>
                <td class="catbg" colspan="2">'
$txt[331], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        '
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' '''<img src="'$settings['images_url'], '/icons/members.gif" alt="'$txt[332], '" border="0" />'$context['show_member_list'] ? '</a>' '''
                </td>
                <td class="windowbg2" width="100%">
                        <b>'
$context['show_member_list'] ? '<a href="' $scripturl '?action=mlist">' $txt[332] . '</a>' $txt[332], '</b>
                        <div class="smalltext">'
$txt[200], '</div>
                </td>
        </tr>'
;
        }

        
// Show YaBB SP1 style information...
        
if ($settings['show_sp1_info'])
        {
                echo 
'
        <tr>
                <td class="catbg" colspan="2">'
$txt[645], '</td>
        </tr>
        <tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        <a href="'
$scripturl'?action=stats">
                                <img src="'
$settings['images_url'], '/icons/info.gif" alt="'$txt[645], '" border="0" /></a>
                </td>
                <td class="windowbg2" width="100%">
                        <table border="0" width="90%"><tr>
                                <td class="smalltext">
                                        <div style="float: '
, !$context['right_to_left'] ? 'left' 'right''; width: 50%;">'$txt[490], ': <b>'$context['common_stats']['total_topics'], '</b></div>'$txt[489], ': <b>'$context['common_stats']['total_posts'], '</b><br />', !empty($context['latest_post']) ? '
                                        ' 
$txt[659] . ': &quot;' $context['latest_post']['link'] . '&quot;  (' $context['latest_post']['time'] . ')<br />' '''
                                        <a href="'
$scripturl'?action=recent">'$txt[234], '</a>'$context['show_stats'] ? '<br />
                                        <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
                                </td>
                                <td width="32%" class="smalltext" valign="top">
                                        '
$txt[488], ': <b><a href="'$scripturl'?action=mlist">'$context['common_stats']['total_members'], '</a></b><br />
                                        '
$txt[656], ': <b>'$context['common_stats']['latest_member']['link'], '</b><br />';
                
// If they are logged in, show their unread message count, etc..
                
if ($context['user']['is_logged'])
                        echo 
'
                                        '
$txt['smf199'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['messages'], '</a></b> '$txt['newmessages3'], ': <b><a href="'$scripturl'?action=pm">'$context['user']['unread_messages'], '</a></b>';
                echo 
'
                                </td>
                        </tr></table>
                </td>
        </tr>'
;
        }

        
// "Users online" - in order of activity.
        
echo '
        <tr>
                <td class="catbg" colspan="2">'
$txt[158], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
                        '
$context['show_who'] ? '<a href="' $scripturl '?action=who">' '''<img src="'$settings['images_url'], '/icons/online.gif" alt="'$txt[158], '" border="0" />'$context['show_who'] ? '</a>' '''
                </td>
                <td class="windowbg2" width="100%">'
;

        if (
$context['show_who'])
                echo 
'
                        <a href="'
$scripturl'?action=who">';

        echo 
$context['num_guests'], ' '$context['num_guests'] == $txt['guest'] : $txt['guests'], ', ' $context['num_users_online'], ' '$context['num_users_online'] == $txt['user'] : $txt['users'];

        
// Handle hidden users and buddies.
        
if (!empty($context['num_users_hidden']) || ($context['show_buddies'] && !empty($context['show_buddies'])))
        {
                echo 
' (';

                
// Show the number of buddies online?
                
if ($context['show_buddies'])
                        echo 
$context['num_buddies'], ' '$context['num_buddies'] == $txt['buddy'] : $txt['buddies'];

                
// How about hidden users?
                
if (!empty($context['num_users_hidden']))
                        echo 
$context['show_buddies'] ? ', ' ''$context['num_users_hidden'] . ' ' $txt['hidden'];

                echo 
')';
        }

        if (
$context['show_who'])
                echo 
'</a>';

        echo 
'
                        <span class="smalltext">'
;

        
// Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
        
if (!empty($context['users_online']))
                echo 
'
                                '
$txt[140], ':<br />'implode(', '$context['list_users_online']);

        echo 
'
                                <br />'
$context['show_stats'] && !$settings['show_sp1_info'] ? '
                                <a href="' 
$scripturl '?action=stats">' $txt['smf223'] . '</a>' '''
                        </span>
                        <hr /><span class="smalltext">
                        Most users online today: '
.$modSettings['mostOnlineToday'].' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        Most users online ever: <b>'
.$modSettings['mostOnline'].'</b> ( '.timeformat($modSettings['mostDate']).'  )

                        </span>


                </td>
        </tr>'
;

        
// If they are logged in, but SP1 style information is off... show a personal message bar.
        
if ($context['user']['is_logged'] && !$settings['show_sp1_info'])
        {
                echo 
'
        <tr>
                <td class="catbg" colspan="2">'
$txt[159], '</td>
        </tr><tr>
                <td class="windowbg" width="20" valign="middle" align="center">
'
$context['allow_pm'] ? '
Title: Re: Redirection Boards
Post by: Master of Eternity on March 23, 2007, 08:05:50 AM
Hi whenever I try to Install this Mod it gives the Following Error:

Installing this package will perform the following actions:
   Type                                      Action                  Description
1.    Execute Code                     RedirectPdb.php    
2.    Execute Modification    -                                Modification parse error

I don't know what is wrong. Can Anyone help? I use SMF 1.1.2
Title: Re: Redirection Boards
Post by: TrueSatan on March 23, 2007, 08:13:03 AM
 You need to do a manual installation...the error simply tells you that that file has been previously modified and thus it is not the same as the unmodified file the mod is geered to change.
Title: Re: Redirection Boards
Post by: TrueSatan on March 23, 2007, 08:25:22 AM
Quote from: CaNe on March 14, 2007, 04:04:18 AM
Quote from: Greenman on March 13, 2007, 04:58:46 AM
^ Then obviously they might be causing it... :-\


Anyways, I fixed my above error, but now everytime I view any board I get:
QuoteParse error: syntax error, unexpected ',' in /.../Themes/babylon/MessageIndex.template.php on line 111

and here is line 111:
Quoteecho ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>', $board['redirect_clicks'], '</b> ', $txt['redirected_clicks']);


I don't see anything wrong with it, and tried taking out the ","s one by one and all together, but they need to be there for things to work properly.

help? :(

Umm actually this is the mod i tryed to install first before any others and this is what i got. i uninstalled all my other mods and retryed still the same thing.

Unless your forum was entirely new and had never had any mods or edits applied to it it is highly likely that past alterations left behind remnants of themselves despite your uninstallations. These are not the fault of this mod. You may need to start again with a fresh file set on a test forum...add in all the mods you want making sure that they work properly...backup your live/production forum database and the files of your live forum...using the backup of your live/production forum copy it to a new database...link a fresh installation of SMF to that database...add in the mods you checked via your test forum...check everything...test extensively. When you are entirely satisfied that all is well copy the files except for the settings.php and settings.php.bak in the forum root...making sure you still have the copy of them that you took earlier delete all save these files from your live/production forum and copy the files from the second forum in their place.

This may sound like hard work...it's not that hard or that much work...it will give you clean files without the chaff left over from umpteen install/uninstall operations.
Title: Re: Redirection Boards
Post by: papabill on April 02, 2007, 11:40:00 PM
I'd love to have this option, but I keep getting this error:

Duplicate column name 'is_redirect'
File: C:\Apache2\htdocs\Packages\temp\RedirectPdb.php
Line: 44
Title: Re: Redirection Boards
Post by: GravuTrad on April 03, 2007, 02:26:07 PM
no generic solution for this kind of bug?
Title: Re: Redirection Boards
Post by: crappyday on April 07, 2007, 02:39:29 AM
Quote from: Master of Eternity on March 23, 2007, 08:05:50 AM
Hi whenever I try to Install this Mod it gives the Following Error:

Installing this package will perform the following actions:
   Type                                      Action                  Description
1.    Execute Code                     RedirectPdb.php    
2.    Execute Modification    -                                Modification parse error

I don't know what is wrong. Can Anyone help? I use SMF 1.1.2
Quote from: TrueSatan on March 23, 2007, 08:13:03 AM
You need to do a manual installation...the error simply tells you that that file has been previously modified and thus it is not the same as the unmodified file the mod is geered to change.

Umm, so manual installation is needed if I downloaded it here twice but got the same error?  I can install it but is there a problem?
Title: Re: Redirection Boards
Post by: TrueSatan on April 07, 2007, 05:19:33 AM
When you see an error like the one quoted it tells you that the automatic installer won't be able to do a complete installation...it probably can install into the files it shows as "passed". You can thus save on some work by copying all the files that the mod seeks to modify to your local machine, running the automatic installer and ignoring, for the moment, the failed items. copying to your local machine again (but not overwriting the previous copy) the files. Compare the files the installer claimed to have passed and see if it did install properly into those...if so then that's fine and it's saved you form having to do it. Manually install into those files the automatic installer couldn't handle. On your server rename the old versions of the files you manually install into then upload the new (manual install) versions of them.

Done this way you keep the files you alter on your server so that you can quickly revert to them if there is a problem with your manual install....to revert run the package manager automatic uninstall then manually revert the files you manually altered.

BTW remember never to do such work on a live/production forum...get two test forums...one completely fresh with no mods, themes or fiddling about on it...keep it that way by backing it up in pristine state and restoring the pristine state over it after each use...use it to test that a mod etc works at all...if it works in that then your second test forum should be a copy of the files and database of your live forum...install into that and you'll be able to see if it would be practical/safe to install into your live/production forum...do a lot of testing first though.
Title: Re: Redirection Boards
Post by: BigMike on April 16, 2007, 07:03:56 PM
I've got it installed on 1.1.2 and it is a hit-or-miss mod

If I am logged in as an admin, then it just directs me to the new (blank) board with no messages...

If I am logged in as a usual member, then it works just fine.

If I am viewing the forum as a guest, then it just directs me to the new blank board with no messages... like it does if I'm logged in as the admin.



Then when I change 1 setting, "Count all clicks?", then it stops working for regular members and starts working for guests. The admin still cannot view it.

Crazy

Any ideas? I just double checked the coding and everything is there correctly.

Has anyone gotten this to work perfectly with 1.1.2?

Since I only need this to work for one board, I think I can write a script that will check what the URL is, and if it detects the correct board url (in my case "board=63.0") then I can have it replace the url with the new url that I want to redirect to.

That would be a good temp. fix, but I like having the counter of the redirects and such working..

Anyone? Thanks
Mike
Title: Re: Redirection Boards
Post by: BigMike on April 16, 2007, 07:09:20 PM
I just found out that when it does not redirect me, instead taking me to the empty board I created (index.php?board=63.0), after I let my browser (firefox v2) sit there for a while, if I hit reload, then all of a sudden it redirects me to my specified url.

crazy

It only does this if you let it sit for a while. If you hit F5 F5 F5 F5 at first, then nothing happens. But if I leave the window open for a while, and then reload it, then it magically redirects.
Title: Re: Redirection Boards
Post by: BigMike on April 16, 2007, 07:18:29 PM
More info:

When I enable a target for "_blank", it does open up a new window, but it then loads the new empty board #63 in this new window instead of redirecting.

So everything seems to work except for the actual redirection, which sometimes works and sometimes doesnt.

I've got class tonight, so I will check back here later on this evening

Thanks
BigMike
Title: Re: Redirection Boards
Post by: BigMike on April 16, 2007, 07:35:31 PM
Wow, I just replaced

file load.php
header('Location: ' . $row['redirect_url']);

with

header('Location: http://my.actual/redirected.url');

and now it will redirect admins but not guests or regular members lol
Title: Re: Redirection Boards
Post by: BigMike on April 17, 2007, 01:05:55 AM
I am home now but I don't have much time to play with this mod right now, so I got a quick workaround to ......... work ;D

What I did was I deactivated the board (so that it is no longer a redirect) and then posted a new (and only) thread in the newly created board.

This new thread has a link that the user may manually direct himself to (the link that I want the board to redirect to).

Then I reactivated the board as a redirect.

Now, when the redirect script randomly does not redirect the user, the user sees that there is 1 thread in the new board. It's subject is the same as the directed link's title to entice the user to click on it. Then when the forum tries to load a thread that is within a redirect board, it naturally redirects the user to the redirect url.

This lame work around works and I'm happy for now.

G'Night
BigMike
Title: Re: Redirection Boards
Post by: tsmalmbe on April 17, 2007, 08:37:34 AM
I made use of the "target" field as a URL to an image instead. I hardcoded the target-parameter because I don't need that. This enables me to use an image as the link (instead of plain text).

It would be nice to have both the target AND a place to put an image aswell. Perhaps in a future  version?

Title: Re: Redirection Boards
Post by: tsmalmbe on April 17, 2007, 08:37:52 AM
I made use of the "target" field as a URL to an image instead. I hardcoded the target-parameter because I don't need that. This enables me to use an image as the link (instead of plain text).

It would be nice to have both the target AND a place to put an image aswell. Perhaps in a future  version?

Title: Re: Redirection Boards
Post by: Oldiesmann on April 17, 2007, 12:34:14 PM
I will look into adding an image feature in the next version. I need to go through this one and fix any remaining bugs first.
Title: Re: Redirection Boards
Post by: Oldiesmann on April 17, 2007, 01:49:39 PM
Ok. Try it now. I just uploaded a new package that fixes the following bugs:

"Duplicate column" errors (reason: SHOW COLUMNS returns the column names in a column called "Field", not "name")
Changed "in_array()" to "array_key_exists()" in RedirectPdb.php (in_array() looks at array values, but column names are keys)
Fixed parse error in Babylon template files
Fixed path to Babylon theme's BoardIndex.template.php

Hopefully that will fix everything. It will not fix the "Modification parse error" issue with PHP 5.2 though - this is a known issue with SMF that seems to be related to the size of the modification files, but I will need to split the mod into two separate modification files for this, and didn't want to confuse those who are still stuck on 1.0.10.
Title: Re: Redirection Boards
Post by: GravuTrad on April 17, 2007, 02:52:27 PM
Yeah!

perfect for me oldies!

perfect install and perfect use. no more problem for me. ;D
Title: Re: Redirection Boards
Post by: perplexed on April 20, 2007, 07:48:09 AM
ooh can't wait to try the update
Title: Re: Redirection Boards
Post by: SaltedWeb on April 24, 2007, 09:58:27 AM
There are no additions in my board menu it installed fine but
wheres the beef ????


Cozmo
Title: Re: Redirection Boards
Post by: Exsharaen on April 24, 2007, 11:09:36 AM
Broken package? I tried to install in SMF 1.1.2 and found that it couldn't install: not a valid package or may be broken...

I do really hope SMF 2.0 will make this a default feature... (phpBB3 does).
Title: Re: Redirection Boards
Post by: Oldiesmann on April 30, 2007, 09:33:29 PM
Quote from: Diamondcomputer on April 24, 2007, 09:58:27 AM
There are no additions in my board menu it installed fine but
wheres the beef ????


Cozmo

Admin -> Manage Boards
Click Modify next to a board
Check the box next to "Make this board a redirection board"
The other options will appear after you check the box :)

Quote from: Exsharaen on April 24, 2007, 11:09:36 AM
Broken package? I tried to install in SMF 1.1.2 and found that it couldn't install: not a valid package or may be broken...

I do really hope SMF 2.0 will make this a default feature... (phpBB3 does).

Probably a minor typo in package-info.xml. I'll take a look at it and update it.
Title: Re: Redirection Boards
Post by: GravuTrad on May 01, 2007, 09:48:09 PM
really no problem for me with it.

Have you tried to redownload it?
Title: Re: Redirection Boards
Post by: Oldiesmann on May 09, 2007, 06:10:59 PM
One thing I just thought of...

If you're trying to download it directly through the package manager, it probably won't work, because the package manager is still using the "mods.simplemachines.org" address, which redirects to the new URL, and SMF wasn't designed to handle this. Change the URL for the package server to http://custom.simplemachines.org/mods and try again.
Title: Re: Redirection Boards
Post by: El Reclutador 2003 on May 12, 2007, 08:53:32 PM
Is there any way to install this mod on SMF 1.1.2?
Title: Re: Redirection Boards
Post by: sharks on May 13, 2007, 04:59:57 AM
is it possible to redirect without a new window opening? it would be great to allow redirection to another board/post, without leaving the current page itself :)
Title: Re: Redirection Boards
Post by: alex_zmn on May 16, 2007, 09:47:05 PM
Quote from: sharks on May 13, 2007, 04:59:57 AM
is it possible to redirect without a new window opening? it would be great to allow redirection to another board/post, without leaving the current page itself :)

I am not using this mod but I just saw the screenshots and I suppose you can leave the column target for the url blank. I believe you are using _blank in that box, which means that it would open in a new window. Hope that makes some sense. But I am not sure about the same.

Anyways, congrats to the developers for this mod. I am also planning to use it soon enough in my website.
Title: Re: Redirection Boards
Post by: Oldiesmann on May 19, 2007, 12:09:43 PM
Quote from: El Reclutador 2003 on May 12, 2007, 08:53:32 PM
Is there any way to install this mod on SMF 1.1.2?

Are you running into problems? The mod is already compatible with SMF 1.1.2.

Quote from: sharks on May 13, 2007, 04:59:57 AM
is it possible to redirect without a new window opening? it would be great to allow redirection to another board/post, without leaving the current page itself :)

Just leave the "target" field blank if you want it to open in the same window :)
Title: Re: Redirection Boards
Post by: El Reclutador 2003 on May 19, 2007, 07:03:32 PM
Quote from: Oldiesmann on May 19, 2007, 12:09:43 PM
Quote from: El Reclutador 2003 on May 12, 2007, 08:53:32 PM
Is there any way to install this mod on SMF 1.1.2?

Are you running into problems? The mod is already compatible with SMF 1.1.2.

Yes sorry, now it runs ok :) Thanks!!
Title: Re: Redirection Boards
Post by: Hadrian on May 31, 2007, 01:32:01 PM
Hi i am getting this error too

/Sources/Subs-Boards.php  Test failed

i am not a tecky so any help on this need to be simple ........LOL
Title: Re: Redirection Boards
Post by: ShadowStriker on June 13, 2007, 10:51:01 AM
How do you manually modify it in a different theme?
Title: Re: Redirection Boards
Post by: Sakae on June 13, 2007, 10:51:24 PM
Works like a charm for me (1.1.2). Good job.
Title: Re: Redirection Boards
Post by: NeoItalian on June 17, 2007, 06:54:15 AM
Hey, I'am French !

I must make modifications in the "BoardIndex.template.php" but which requires to replace is not there in my file:

Quote</operation>
   </file>
   <file name="$themedir/BoardIndex.template.php">
      <operation>
         <search position="replace"><![CDATA[
            <td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
]]></search>
         <add><![CDATA[
            <td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
               <b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
]]></add>
      </operation>

My "BoardIndex.template.php" = http://dl.free.fr/bV9k0Qss/BoardIndex.template.php

---------------------------------------------------------------------------------------------------------------------

Similar for my "MessageIndex.template.php", the modifications cannot be done because I do not find its in my file:

Quote<file name="$themedir/MessageIndex.template.php">
      <operation>
         <search position="replace"><![CDATA[
            <td class="windowbg2">
               <b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />
]]></search>
         <add><![CDATA[
            <td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '', '>
               <b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />
]]></add>
      </operation>


My "MessageIndex.template.php" = http://dl.free.fr/Xq4MKyzH/MessageIndex.template.php

I'm SMF 1.1.2 and Theme Dilbermc !

Thanks !
Title: Re: Redirection Boards
Post by: sendoor on July 01, 2007, 07:05:43 AM
Hi,
Once we post a message its redirect to that board. Can We change like redirect to the post? How?
Title: Re: Redirection Boards
Post by: Exochat on July 01, 2007, 11:12:59 AM
Can you not put a URL redirection into the BOARD NAME box?? that way it will redirect you to any webpage by clicking the board name without even installing a MOD.

Title: Re: Redirection Boards
Post by: dexterion on July 05, 2007, 08:29:29 AM
I am very sorry if this has been brought up before but after an hour of forum searching I hope I'm safe posting.

Is there any chanse this mod could be extended to redirection topcis? (I have a topic with some details that I want linked on a few more boards but not all, e.g. not a global announcment) The funcion of moving a topic and having a "ghost" topic linking to the new location is exactly what I want but want to be able to do it manually (e.g. have the option to do it when I press "New Topic")...

Again, sorry if this has been brought up before.

Thanks,
dex of www.team-evo.co.uk
Title: Re: Redirection Boards
Post by: The Kruzzen Guy on July 07, 2007, 05:10:10 AM
my footer area shows this

"$txt['redirected_click'] = '1 redirected click'; $txt['redirected_clicks'] = ' redirected clicks'; $txt['redirect_count_clicks'] = 'Count all clicks?'; $txt['redirect_count_clicks_desc'] = 'This will keep track of how many times the board redirects your users'; $txt['redirect_enable'] = 'Make this board a redirection board'; $txt['redirect_enable_desc'] = 'This will redirect any user attempting to access this board to a URL of your choice'; $txt['redirect_location'] = 'URL to redirect user to'; $txt['redirect_hide_columns'] = 'Hide "posts" and "topics" for redirection boards'; $txt['redirect_no_child'] = 'Redirection boards can\'t have child boards!'; $txt['redirect_no_url'] = 'Redirection boards must have a URL!'; $txt['redirect_reset_clicks'] = 'Reset click count'; $txt['redirect_reset_clicks_desc'] = 'This will reset the click count to 0.'; $txt['redirect_target'] = 'Target for the URL'; $txt['redirect_target_desc'] = 'The target for the redirection link (ie _blank)'; "

when i upload the mod, on my other forum (with the same theme) it doesnt...

see: http://www.freemasonhq.com
Title: Re: Redirection Boards HELP!
Post by: ES23 on July 19, 2007, 01:15:16 AM
Hi!I need help here.I am using SMF 1.1.3 currently and I tried to install the latest version of Redirection Board.I faced an error for the Sources/Suns-Boards:

   Type     Action     Description
1.    Execute Code    RedirectPdb.php    
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

I've tried to use the SMF Package Parser to work this out and install manually but I was returned by the response:


ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/groups/modparser/htdocs/index.php:133
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/groups/modparser/htdocs/index.php(133): SimpleXMLElement->__construct('')
#1 /home/groups/modparser/htdocs/index.php(94): parsePackageInfoXML('/tmp/smf_xml/pa...', 'install', 'all')
#2 /home/groups/modparser/htdocs/index.php(735): parseArchive('/tmp/phpqhWTUh', 'install', 'all')
#3 {main}

XML File:



***********Can someone please help me???A step by step installation procedure help will be appreciated.Does anyone has a solution for this???
Title: Re: Redirection Boards
Post by: jeffest123 on July 30, 2007, 08:16:50 PM
Quote from: ES23 on July 19, 2007, 01:15:16 AM
6.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
I'm getting the same error. Really a shame because this mod is exactly what I've been looking for.
Title: Re: Redirection Boards
Post by: CraftyLion on August 10, 2007, 07:55:49 PM
I'm trying to get my redirect to open in a new window but even thought I include _blank into the Target for the URL, it still opens in the same window. Help someone?
Title: Re: Redirection Boards
Post by: Cool999 on August 15, 2007, 08:55:38 AM
SMF Ver- 1.1.3

I am getting error when i click On Apply Mod-

apply Mod
This package is already installed, and no upgrade was found!

You should uninstall the old version first to avoid problems, or ask the author to create an upgrade from your old version.

Please remember to always make regular backups of your sources and database before installing mods, especially beta versions.

Install Actions
Installations actions for "Redirection Boards":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.



But i m not getting the Option in the Boards, so its already installed???????


Please Help

Thanks

Title: Re: Redirection Boards
Post by: ekfaysal on August 27, 2007, 02:59:30 AM
(http://i192.photobucket.com/albums/z31/ekfaysal/h.jpg)

This is happening to me when i m trying to upload in my forum
Please help
im using smf 1.1.3 with Default theme color variation
Title: Re: Redirection Boards
Post by: HEB XI 1 on September 01, 2007, 03:11:51 PM
I also got the error:

6.    Execute Modification    ./Sources/Subs-Boards.php    Test failed

Installed Mods:
     Tiny Portal
     Gallery 2 Integration
     Custom Board Sort
     Repeating Calendar Events

http://baker.hebxi1.com


After going thru most of the pages on this thread, I decided to use a simple href tag in the board title, as suggested back on page 2 or so.

My situation is probably unique in that I actually USE the board I would like to redirect ... I have posts in there that another site pulls from to act as a type of blog.  So while I will need to be able to access them, I don't want the general public to do so - I want them directed to the other site.

Don't know if that is an option using the mod?  Currently I just have to remember the board ID and enter it into the address manually to access the board and posts.
Title: Re: Redirection Boards
Post by: feelingshehides on October 04, 2007, 12:23:56 AM
Is there a new update to this for 1.14 ? can't seem to install the mod :( same error as above post..

Can this also work with Valid Dilber MC Theme ? it errors also.. i first tried the default theme.
Title: Re: Redirection Boards
Post by: BigMike on October 12, 2007, 02:59:32 PM
Quote from: feelingshehides on October 04, 2007, 12:23:56 AM
Is there a new update to this for 1.14 ? can't seem to install the mod

feelingshehides, I assume you are talking about version 1.1.4.

I installed this Redirection Board mod on my forum when it was version 1.1.2.

I then updated my forum to 1.1.3 and the mod still worked.

And now I just updated my forum to 1.1.4 and the mod still works.

So the mod will RUN on SMF 1.1.4, but as for the installation, I do not know about this.


Also, the reason why I came back here is because I wish to address an issue I have in my error log.

I remember a while ago I found the solution on SMF for this, but I've searched, searched, and then when I was tired of searching, I searched more and could not find exactly what I am looking for.

Oldiesmann: I am getting a Undefined index: current_board error, about 5,000 something times per day. I usually just empty out my error log once it gets to page 2,000 or so, but I order to track other errors, I really should take care of this problem.

I remember the fix was just something simple. I think SMF just needs to know that the variable "current_board" is a proper variable that is used by the system.

My searches returned a lot of threads (containing the search term "Undefined index") but they were either not answered or contained answers not pertaining to this situation.

Thanks a bunch
BigMike
Title: Re: Redirection Boards
Post by: Neorics on October 14, 2007, 08:54:41 AM
when i was installing the redirection mod on my custom theme i dont know where to put this one cause the search is very vague.. btw i'm following the modification_1-0.xml is that the correct file?


<operation>
         <search position="after"><![CDATA[
            echo '
      </td>
   </tr>';
]]></search>
         <add><![CDATA[
            elseif ($board['is_redirect'])
            {
               if($board['redirect_count_clicks'])
               {
                  // How many redirected clicks? We have to be grammatically correct, you know ;)
                  echo ($board['redirect_clicks'] == 1 ? $txt['redirected_click'] : '<b>'. $board['redirect_clicks'] .'</b> '. $txt['redirected_clicks']);
               }
               else
               {
                  // For now, just show this filler text. I'll probably do more with this in the next version...
                  echo 'N/A';
               }
            }
]]></add>
      </operation>


i have a lot of this

echo '
      </td>
   </tr>';
Title: Re: Redirection Boards
Post by: Johno69 on November 07, 2007, 05:38:36 PM
I had the same problem while installing on versatility 2 theme.

I thought I had it right but kept getting template error, so gave up.
Title: Re: Redirection Boards
Post by: softtouch on December 25, 2007, 03:46:49 AM
I did not read all replies here, but are there anywhere some permissions settings related to membergroups?
What I would like to do is to redirect member without enter board permission to an url of my choice, but once they are added to a specific membergroup, they should be able to enter that board without getting redirected.
This way, I could show a message with some info about the board and why they can not enter the board etc.
Title: Re: Redirection Boards
Post by: Johno69 on January 04, 2008, 06:50:36 PM
When you create a board you have the option to make it available to only certain groups.

Make a redirect board available to one group and a real board available to another group. When you change the user to the group then then see the real board and not the redirect.
Title: Re: Redirection Boards
Post by: NiteCloak on January 10, 2008, 02:43:13 PM
I'm running SMF 1.1.4 (Theme = 'Black Rain' by Crip) and thankfully I rarely get test failures when looking to install new mods.  Sadly I am getting three such errors with this mod which is a shame because I could really use it.

The results of a test install on the package file are as follows:

1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php       Test successful
3.    Execute Modification    ./Sources/Load.php                    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php     Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php       Test failed
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful



The mods I have installed (and there are many) are as follows:

   Mod Name     Version     
1.    SMF 1.1.2 Update Package    1.1.2
2.    PaypalDonations    1.7    [ Failed | Not Applied ]
3.    Color Bar    2.0
4.    Award Mod    1.11
5.    Integrated Chat    2.7
6.    SSI Membergroup    1.0
7.    Enhanced Calendar    1.1
8.    Custom Profile Field Mod    3.16
9.    Who Voted What?    1.1.2    
10.    Add PM Info To header (v1.1)    1.1
11.    RSS Feed Icon    1.1    
12.    Users Online Today Mod    1.4.0    
13.    Topic Ratings    1.03    
14.    Reg Bar    1.0    
15.    SMF Shoutbox    1.16
16.    mp3 Flash Player BBC Tag (XHTML Compliant)    1.0
17.    SMF 1.0.11 / 1.1.3 Update    1.1    
18.    Order News    1.0.1    
19.    Stars to Profile    1.0.1
20.    YouTube BBCode    1.3    
21.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    
22.    XFire Field    1.4    
23.    Welcome Topic Mod    1.0    
24.    Advanced Visual Verification    1.2
25.    Redirection Boards    2.01    [ Failed | Not Applied ]


Any ideas?


Title: Re: Redirection Boards
Post by: TrueSatan on January 10, 2008, 02:53:42 PM
The more mods you add the more fails you will get...

Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file(s) in question and that you thus need to do a manual installation of this mod. Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Redirection Boards
Post by: NiteCloak on January 10, 2008, 03:27:37 PM
That last link is bogus.  I uploaded the Board Redirect package tar by Oldiesmann and it tells me its:

Readme:
Ad Management Mod
Written by: jerm (electrohome88)
Email: [email protected]
Support site: www.smfads.com

----------
This mod will display ads on various parts of your forum on the default theme in SMF Version 1.1
---------
Version 2.3 Jan 11, 2007
- New setting: Disable ads for admins
- New setting: Disable reports(one less query)
- New setting: Disable all ads
- New setting: Ability to make post ads not look like posts.
- Added the ability to display ads between categories
- Added the ability to display ads after the last post
- Added the ability to display ads under child boards
- Fixed issues about not finding functions(caused forums to crash)


So I tried a couple of other mods and it came up with the same BS.    Clearly this is some kind of scam to get SMF people with half a brain to insert ad code in to their forums.
Title: Re: Redirection Boards
Post by: TrueSatan on January 10, 2008, 07:51:21 PM
The information I provided was not bogus!

The package parsers sometimes suffer from cache issues and so the previous...and entirely legitimate...mod sent to them can be shown instead of the one you uploaded. The ad management mod, had you bothered to check you would have found this out, is an approved SMF mod package not some ad scam:

http://custom.simplemachines.org/mods/index.php?mod=255 (http://custom.simplemachines.org/mods/index.php?mod=255)

Please do not post in the insulting manner you have just used!
Title: Re: Redirection Boards
Post by: NiteCloak on January 11, 2008, 09:27:20 AM
Apologies if the post seemed offensive that was not my intent.  The statement of "bogus" was not implying that your post was, and by association "you", just that link! However, as far as I am concerned that link is useless.  I went back again this morning and tried again and I am getting yet another mod that I didn't input. Clearly they need to figure out a way to flush the cache serverside after each session otherwise it fails as a service unless by some miracle the mod last entered also happens to be the one you want as well.

The link above that dansofasutralia.net one just errors out each time telling me that the package-info.xml file is invalid!

Sadly because of the nature of my work, I simply don't have the time available to do the reading research and data assimilation required by the first links you provided although I strongly suspect that is where I will really find the answer I need to fix my problem.


Title: Re: Redirection Boards
Post by: TrueSatan on January 11, 2008, 10:01:04 AM
Unfortunately server issues do happen and when the system is one that the site admin may not, personally, use on a regular basis they may not be aware of the problem. A few installations of the Package Parser have been updated recently is reponce to discussions had on the bugs forum here between Sarge and myself, one such is that on SMF Helper...that installation works properly with this mod.

http://www.smfhelper.info/forum/package.php5 (http://www.smfhelper.info/forum/package.php5)

Should you have a problem with that installation of the Package Parser please contact any of the admins on SMF Helper (I'm an admin there) and we will remedy any problems as quickly as possible...that said it is not a requirement for all mods to work with the Package Parser and some simply don't do so.
Title: Re: Redirection Boards
Post by: NiteCloak on January 11, 2008, 10:30:06 AM
Well thanks that one worked and parsed very nicely (based upon 1.1.4)

I decided to read through the whole thing before attempting any changes but I stopped when I got to this:


In file $sourcedir/ManageBoards.php

Find:

'permission_mode' => 'normal',





Do something with this: (position not specified)

'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',




I'm no code guru so what are the possibilities that someone knows "what" to do with that?
Title: Re: Redirection Boards
Post by: TrueSatan on January 11, 2008, 10:56:06 AM
It should have, at the problem point, stated "Add after"....I'll have to look at the mod some time to try to see what made that glitch occur...haven't seen it happen previously.
Title: Re: Redirection Boards
Post by: SgtMic on January 19, 2008, 10:13:09 PM
Since the great hardware crash of 2008, can someone send me this mod? The mod so far is not able to be downloadable yet. fightinirishman2 at hotmail dot com

Thanks.
Title: Re: Redirection Boards
Post by: TrueSatan on January 20, 2008, 07:32:55 AM
http://custom.simplemachines.org/mods/index.php?mod=38 (http://custom.simplemachines.org/mods/index.php?mod=38)

The mod downloads without problems.
Title: Re: Redirection Boards
Post by: SgtMic on January 20, 2008, 12:57:46 PM
Now it works. Cool.
Title: Re: Redirection Boards
Post by: Pond_Hockey on February 09, 2008, 10:39:55 PM
Is there anyway that you can change this mod so that it redirects topics instead of the boards?
Title: Re: Redirection Boards
Post by: perplexed on February 10, 2008, 12:31:54 PM
Quote from: Pond_Hockey on February 09, 2008, 10:39:55 PM
Is there anyway that you can change this mod so that it redirects topics instead of the boards?

If you move topics, you can leave a redirection move notice in its place, that would achieve the same thing, I think :)
Title: Re: Redirection Boards
Post by: Pond_Hockey on February 10, 2008, 08:51:08 PM
That didn't work. What I want is so that when you click the topic title to enter the topic it takes you to another site. Is that possible?
Title: Re: Redirection Boards
Post by: Pяηѕѕ LF on March 03, 2008, 03:25:30 PM
Bonjour,

I Have a problem with this mod in boardindex.template.php

Find This :

<td class="windowbg2">
<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />


Change With This:

<td class="windowbg2"', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '' , '>
<b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '' , '>', $board['name'], '</a></b><br />



But me i have this code:

<td class="windowbg2">
',$board['viewer_text'],'<b><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a></b><br />


how i can change it ??

thanks for your help.


Title: Re: Redirection Boards
Post by: denzil69 on March 05, 2008, 01:00:50 PM
version 2.0.1
default theme

error in theme.template

ive deleted
Title: Re: Redirection Boards
Post by: ranKoto on March 08, 2008, 03:05:28 AM
hi all

i just install version 2.0.1

but i got this little 'inconvinience"..
after installing this mod, the list of my child board that usually appear in a bold text which is indicate that there is a new post in there turn into normal text ( just like it was visited )

is there anyway how to fix this ?
thanks before
Title: Re: Redirection Boards
Post by: EagleTrades on March 09, 2008, 01:29:38 PM
Oldiesman,

Installed this mod.  We are using dilbermc.  The mod is working correctly except for one thing.  When you select the redirect option, then _blank to create a new window upon opening, the link works but does not open a new window.  I uninstalled, reinstalled, followed steps in the above thread and still can't get any of the redirects to open in new window.

Is there a hack that can be used to force open all in new window?  I don't want people to navigate away from the forum to another page, then have to navigate back to the forum.

Thanks in advance.  Excellent mod though.  I have been looking for this capability for a while.
Title: Re: Redirection Boards
Post by: Darknico on March 12, 2008, 11:42:06 AM
Quote from: NiteCloak on January 11, 2008, 10:30:06 AM
I'm no code guru so what are the possibilities that someone knows "what" to do with that?

a error in a mod package:

modification_1-1_part1

Search:
<operation>
<search postion="before"><![CDATA[
'permission_mode' => 'normal',
]]></search>
<add><![CDATA[
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',
]]></add>
</operation>


Replace:
<operation>
<search position="before"><![CDATA[
'permission_mode' => 'normal',
]]></search>
<add><![CDATA[
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',
]]></add>
</operation>


error:

postion --> position
Title: Re: Redirection Boards
Post by: EagleTrades on March 12, 2008, 12:54:45 PM
Hello,

Thank you for the reply.  Can you tell me where I need to place the hack you included in your reply?

Sorry, still new to PHP.  The good thing is that the more I hang around this forum, the better I get at it.
Title: Re: Redirection Boards
Post by: Darknico on March 12, 2008, 01:47:37 PM
This problem

Quote from: NiteCloak on January 11, 2008, 10:30:06 AM
Well thanks that one worked and parsed very nicely (based upon 1.1.4)

I decided to read through the whole thing before attempting any changes but I stopped when I got to this:


In file $sourcedir/ManageBoards.php

Find:

'permission_mode' => 'normal',





Do something with this: (position not specified)

'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '',




I'm no code guru so what are the possibilities that someone knows "what" to do with that?
Title: Re: Redirection Boards
Post by: EagleTrades on March 12, 2008, 02:04:15 PM
I aam not sure either.  But in looking at the code, I would say the following:

Code:
'target' => '',


Replace:
'target' => '_blank',


Wouldn't this force a new window on click?  I think it would.  However, I do not know much about SMF hacks either. So, maybe someone else has some input here.  Again, thank you for you help so far.
Title: Re: Redirection Boards
Post by: No.Body on March 13, 2008, 12:27:35 PM
I get an error :(


1.  Execute Code  RedirectPdb.php 
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Load.php Test successful
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/MessageIndex.php Test successful
6. Execute Modification ./Sources/Subs-Boards.php Test failed
7. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
8. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
9. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
10. Execute Modification ./Themes/babylon/BoardIndex.template.php Skipping file
11. Execute Modification ./Themes/babylon/MessageIndex.template.php Skipping file
12. Execute Modification ./Themes/classic/BoardIndex.template.php Skipping file
13. Execute Modification ./Themes/classic/MessageIndex.template.php Skipping file
14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
Title: Re: Redirection Boards
Post by: perplexed on March 13, 2008, 12:42:50 PM
use the package parser in my signature and either install the mod manually or use it to edit those files that failed :)
Title: Re: Redirection Boards
Post by: No.Body on March 13, 2008, 01:20:11 PM
Quote from: perplexed on March 13, 2008, 12:42:50 PM
use the package parser in my signature and either install the mod manually or use it to edit those files that failed :)

I got this after using the parser...


Quote
ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phph1K2JI', 'install', 'theme')
#3 {main}

XML File:
Title: Re: Redirection Boards
Post by: EagleTrades on March 13, 2008, 01:47:26 PM
Quote from: perplexed on March 13, 2008, 12:42:50 PM
use the package parser in my signature and either install the mod manually or use it to edit those files that failed

Thank you.  I keep forgetting to use the package parser.  It is really a an awesome tool.  I finally bookmarked it so it would be handy when needed.

Thanks again.
Title: Re: Redirection Boards
Post by: perplexed on March 13, 2008, 02:00:17 PM
no probs, I use it a lot myself :)
Title: Re: Redirection Boards
Post by: Ncen on March 13, 2008, 02:21:37 PM
QuoteERROR: The package-info.xml file is invalid!


Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all')
#2 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/phppPBGwi', 'install', 'all')
#3 {main}

XML File:

That's the error i get trying to use the parser. :/
Title: Re: Redirection Boards
Post by: EagleTrades on March 13, 2008, 03:40:13 PM
Hello,

I ran the package parser and got the following errors.

QuoteERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:
Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(782): parseArchive('/tmp/php6j5I3B', 'install', 'theme')
#3 {main}

However, I have installed this mod regardless and the redirects are working as they should.  The only exception is that when you tell the redirect to open the link in a new window, using "target=_blank", it does not open in a new window. This is the only complaint that I really have at this point. I am not so sure that I want users navigating away from the forum without an easy way to get back to that particular topic.

Based on the above, I suspect that the problem is the paths stated in the XML file. Of course, I would like to see a correction for this as it is just one more of those things that ticks at me.  But, I guess if the redirects are working, that is what I was after anyway.
Title: Re: Redirection Boards
Post by: JoshieDaMan on April 04, 2008, 06:07:38 PM
Quote1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Solution?
Title: Re: Redirection Boards
Post by: perplexed on April 04, 2008, 06:52:22 PM
Quote from: JoshieDaMan on April 04, 2008, 06:07:38 PM
Quote1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Solution?

use the package parser to edit the failed files manually :)
Title: Re: Redirection Boards
Post by: soyabiatch on April 05, 2008, 01:11:46 AM
I have the same as pp and get this on the parser

ERROR: The package-info.xml file is invalid!

Debugging Information
Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'all')
#2 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpc2GxVy', 'install', 'all')
#3 {main}

XML File:
Title: Re: Redirection Boards
Post by: perplexed on April 05, 2008, 06:28:18 AM
try opening the install.xml file in a text editor and following the instructions to edit the files yourself.  It doesn't make it easy for you like the package parser but it is still doable.  Just remember when it says 'add before' it means 'add after' and vice versa :)
Title: Re: Redirection Boards
Post by: soyabiatch on April 05, 2008, 07:49:02 AM
I would but there is nothing in there that is worth reading

QuoteThe XML mod format is quite simple to understand once you get the hang of it.

<file> - this is the name of the file we're editing
<operation> - a single step in the modification process
<search> - what to search for - the position indicates where the code we're searching for should go in relation to what we're adding:
   <search position="after"> - search for the code, and add whatever's in <add> BEFORE it (ie this should come AFTER what we're adding)
   <search position="before"> - search for the code, and add whatever's in <add> AFTER it (ie this should come BEFORE what we're adding)
   <search position="end"> - add whatever's in <add> at the end of the file
   <search position="replace"> - search for this code and replace it with whatever's in <add>
<add> - whatever we're adding (note: <add /> combined with <search position="replace"> means the code you're searching for should be removed)

If you do not pay attention to "position", the mod will not work properly and you will probably get errors...
Title: Re: Redirection Boards
Post by: perplexed on April 05, 2008, 07:57:35 AM
sorry wrong title.  If you unzip the package there is a manual install text file which tells you what to do - that looks like what you have posted above, and there are a couple of files called modification  (number).xml.  It's those files you need to be looking at.
Title: Re: Redirection Boards
Post by: soyabiatch on April 05, 2008, 08:30:02 PM
I give up, it is driving me nuts
Title: Re: Redirection Boards
Post by: JoshieDaMan on April 05, 2008, 09:24:41 PM
Quote from: quiteperplexed on April 04, 2008, 06:52:22 PM
Quote from: JoshieDaMan on April 04, 2008, 06:07:38 PM
Quote1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Solution?

use the package parser to edit the failed files manually :)
I tried that before I post for a solution.=]

ERROR: The package-info.xml file is invalid!

Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpu3FpaK', 'install', 'theme')
#3 {main}

XML File:
Title: Re: Redirection Boards
Post by: perplexed on April 06, 2008, 05:16:58 AM
Quote from: JoshieDaMan on April 05, 2008, 09:24:41 PM
Quote from: quiteperplexed on April 04, 2008, 06:52:22 PM
Quote from: JoshieDaMan on April 04, 2008, 06:07:38 PM
Quote1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Solution?

use the package parser to edit the failed files manually :)
I tried that before I post for a solution.=]

ERROR: The package-info.xml file is invalid!

Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpu3FpaK', 'install', 'theme')
#3 {main}

XML File:

see below

Quote from: quiteperplexed on April 05, 2008, 07:57:35 AM
sorry wrong title.  If you unzip the package there is a manual install text file which tells you what to do - that looks like what you have posted above, and there are a couple of files called modification  (number).xml.  It's those files you need to be looking at.
Title: Re: Redirection Boards
Post by: starz on April 07, 2008, 09:09:36 PM
this mod isn't installing right for me.  the tests are successful and it appears to install fine, but when i go to manage my board, there is no text as seen in my attachment.  i cant use the parser, as others have tried too.

im using smf 1.1.4.  tried viewing the admin panel with the core theme and my others and they all yield the same thing. i've looked at both parts of modification_1-1 and the edits required for manageboards.php been done correctly.  anyone know why no text is coming up?
Title: Re: Redirection Boards
Post by: PrizeLive.com on April 17, 2008, 09:34:24 PM
This mod isn't working for me either. It installed fine (1.1.4) but there's no option to have it setup.
Title: Re: Redirection Boards
Post by: JoshieDaMan on April 19, 2008, 02:26:30 AM
Quote from: quiteperplexed on April 06, 2008, 05:16:58 AM
Quote from: JoshieDaMan on April 05, 2008, 09:24:41 PM
Quote from: quiteperplexed on April 04, 2008, 06:52:22 PM
Quote from: JoshieDaMan on April 04, 2008, 06:07:38 PM
Quote1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful


Solution?

use the package parser to edit the failed files manually :)
I tried that before I post for a solution.=]

ERROR: The package-info.xml file is invalid!

Error message: String could not be parsed as XML
Source: /home/sleepy1/public_html/PackageParser/index.php:155
Errors encountered while parsing XML file:

Stack Trace:
#0 /home/sleepy1/public_html/PackageParser/index.php(155): SimpleXMLElement->__construct('')
#1 /home/sleepy1/public_html/PackageParser/index.php(96): parsePackageInfoXML('/home/sleepy1/b...', 'install', 'theme')
#2 /home/sleepy1/public_html/PackageParser/index.php(784): parseArchive('/tmp/phpu3FpaK', 'install', 'theme')
#3 {main}

XML File:

see below

Quote from: quiteperplexed on April 05, 2008, 07:57:35 AM
sorry wrong title.  If you unzip the package there is a manual install text file which tells you what to do - that looks like what you have posted above, and there are a couple of files called modification  (number).xml.  It's those files you need to be looking at.
Parser mod would be better, and clean instruction for me. Is there a way to fix one for mod parser?
Title: Re: Redirection Boards
Post by: Joker Grafix on April 22, 2008, 12:34:03 AM
Okay this mod installed fine for me (SMF 1.1.4) however when I went into the boards to redirect a board it had double installed the "Would you like to make this a redirect board"

So I uninstalled it until I could get some help and it left traces of rs_rdirect or something similar behind and disabled all my boards. Using FTP and searching for the error line I was able to remove all traces of the redirect board.

Now the problem I am having is when I go to make a new board at the very bottom I still have the options to make the board redirect even though I have uninstalled the mod and removed the error traces it left behind.

Where can I find where the code for this part of the mod so I may remove it and try this mod again?

Thanks for the help.

Let me know if I need to make anything more clear.
Title: Re: Redirection Boards
Post by: PrizeLive.com on April 22, 2008, 09:38:53 AM
Quote from: Joker Grafix on April 22, 2008, 12:34:03 AM
Where can I find where the code for this part of the mod so I may remove it and try this mod again?

I would just use a package parser and find all the edits that were made to make the mod work. Just remove everything that it says was added.
Title: Re: Redirection Boards
Post by: Chris IOW on May 19, 2008, 07:22:26 AM
My Install is failing on these things:

Execute Modification ./Themes/default/BoardIndex.template.php Test failed

Execute Modification ./Themes/default/MessageIndex.template.php Test failed



Can I Install and edit these files manually? If so what code do I need to add/change in these files?

Cheers
Title: Re: Redirection Boards
Post by: Johno69 on May 23, 2008, 11:51:18 PM
Is there a way to have the mouseover text show how many redirects when the redirect board is a child?

It currently shows:  No New Posts (topics: 0, Posts: 0)
Title: Re: Redirection Boards
Post by: _Anthony_ on May 24, 2008, 03:08:24 AM
It is included in smf 2.0
Title: Re: Redirection Boards
Post by: Johno69 on May 24, 2008, 06:01:53 AM
That's good but i'm not using SMF2 due to using the joomla bridge and not wanting to break that.

So can we get it working with 1.X.X ?
Title: Re: Redirection Boards
Post by: _Anthony_ on May 24, 2008, 01:21:43 PM
YOu can use this with smf 1
Title: Re: Redirection Boards
Post by: Chris IOW on May 24, 2008, 06:06:23 PM
I cant get it working either? is there a direct link for the manual install instructions?
Title: Re: Redirection Boards
Post by: Johno69 on May 24, 2008, 08:05:48 PM
Quote from: MrMoney on May 24, 2008, 01:21:43 PM
YOu can use this with smf 1

Yes but the added feature I mentioned ?

Quote from: Johno69 on May 23, 2008, 11:51:18 PM
Is there a way to have the mouseover text show how many redirects when the redirect board is a child?
Title: Re: Redirection Boards
Post by: Krysia on June 12, 2008, 11:08:50 PM
Does anyone know why this mod doesn't have a "Download" link next to its name when looking at it through the Package Server (browsing) in the Admin Panel?
Title: Re: Redirection Boards
Post by: InsaneneSs on July 01, 2008, 12:44:14 PM
Can somewone tell me how do i install this mod on this themes

Outline - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item52

DarkBreack - http://www.dzinerstudio.com/index.php?action=tpmod;dl=item55

When i try to install it says "MessageIndex.template.php  error"

thanks
Title: Re: Redirection Boards
Post by: Rosenstein on July 05, 2008, 08:43:38 PM
I think you shouldn't replace in  "./Sources/ManageBoards.php"
Quote 'permission_mode' => 'normal',
with
Quote
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '
But, instead add after
Quote 'permission_mode' => 'normal',
Because, when you replace it it gives "8: Undefined index: permission_mode" error.
Title: Re: Redirection Boards
Post by: bran8464 on July 28, 2008, 06:44:51 AM
I would love to have a function like this but when I attempt to install on my 1.1.5, default, I get this:

Installations actions for "Redirection Boards":
Installing this package will perform the following actions:  Type Action Description
1. Execute Code RedirectPdb.php 
2. Execute Modification ./Sources/BoardIndex.php Test successful
3. Execute Modification ./Sources/Load.php Test failed
4. Execute Modification ./Sources/ManageBoards.php Test successful
5. Execute Modification ./Sources/MessageIndex.php Test failed
6. Execute Modification ./Sources/Subs-Boards.php Test successful
7. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
8. Execute Modification ./Themes/default/ManageBoards.template.php Test successful
9. Execute Modification ./Themes/default/MessageIndex.template.php Test failed
10. Execute Modification ./Themes/babylon/BoardIndex.template.php Test failed
11. Execute Modification ./Themes/babylon/MessageIndex.template.php Test failed
12. Execute Modification ./Themes/classic/BoardIndex.template.php Test failed
13. Execute Modification ./Themes/classic/MessageIndex.template.php Test failed
14. Execute Modification ./Themes/default/languages/Help.english.php Test successful
15. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful

Any answers?
Title: Re: Redirection Boards
Post by: bran8464 on July 29, 2008, 05:15:01 AM
On the other hand I also installed it on a clean test site and it installed and it works fine.
This is a great mod and I want it!

My main concern is that I would like to get it into the main site and working
Title: Re: Redirection Boards
Post by: eculewatt on July 30, 2008, 09:38:24 PM
it installed successfully the thing is it shows no words where it is. i can see that it's under "Override Member's Theme" because theres a question mark and to the right is a check spot and when i click the check spot 2 text boxes appear. but i don;t know what to type in them because there is no words
help please, thanks
Title: Re: Redirection Boards
Post by: bran8464 on August 02, 2008, 05:46:04 AM
The bottom box is where you put in something like this: _blank (to open in a new page) and the box above it is where you put the url to redirect to.
Title: Re: Redirection Boards
Post by: peony on August 07, 2008, 03:07:48 AM
Hello Everybody,

I'm new to administrating forums and don't know much about programming.
I installed the Redirect mod without any error messages. 

However, when I go to "Modify Boards",  I can't see the text associated with the new extra options. I can only see the 2 help question marks, 3 new check boxes, and 2 text boxes. I checked off all the boxes and put the redirect link the first box and my board now redirects. However, while I can see that it keeps track of the number of redirects, the text "redirected clicks" does not show, like on the board at http://smf.oldiesmann.us/.

Is there anything I can do about this?

Also, I can't access the forum homepage under the Babylon theme after installing the mod. (I can still access the admin part though.)
I get the following message:

Template Parse Error!
There was a problem loading the /Themes/babylon/BoardIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '/' in .../Themes/babylon/BoardIndex.template.php on line 131
122:                echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
123:             // This board doesn't have new posts, but its children do.
124:             elseif ($board['children_new'])
125:                echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" border="0" />';
126:             // No new posts at all!  The agony!!
127:             else
128:                echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" border="0" />';
129:
130:             echo '</a></td>
131:             echo '</a></td>
132:       <td', $board['is_redirect'] && $modSettings['redirect_hide_columns'] ? ' colspan="2"' : '', '>
133:          <b><a href="', $board['href'], '" name="b', $board['id'], '"', ($board['is_redirect'] && $board['redirect_target'] != '') ? ' target="' . $board['redirect_target'] . '"' : '', '>', $board['name'], '</a></b><br />
134:          ', $board['description'];

How can I get the redirect mod to work with the Babylon theme?
Title: Re: Redirection Boards
Post by: peony on August 07, 2008, 01:25:07 PM
RE: getting the Babylon theme to work
I really had no idea what I was doing, but I opened up the ".../Themes/babylon/BoardIndex.template.php" file in FrontPage and deleted line 131. After reuploading it, I can now see the Home page, but when I click on the board, I get another message:

Template Parse Error!
There was a problem loading the /Themes/babylon/MessageIndex.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected ')', expecting ',' or ';' in .../Themes/babylon/MessageIndex.template.php on line 111
102:             echo '
103:                ', $txt[22], ' ', $txt[30], ' ', $board['last_post']['time'], '<br />
104:                ', $txt['smf88'], ' ', $board['last_post']['link'], ' ', $txt[525], ' ', $board['last_post']['member']['link'];
105:
106:          elseif ($board['is_redirect'])
107:          {
108:             if($board['redirect_count_clicks'])
109:             {
110:                // How many redirected clicks? We have to be grammatically correct, you know ;)
111:                echo ($board['redirect_clicks'] == 1) ? $txt['redirected_click'] : '<b>' . $board['redirect_clicks'] . '</b> ' . $txt['redirected_clicks']);
112:             }
113:             else
114:             {
115:                // For now, just show this filler text. I'll probably do more with this in the next version...

This time I don't know how to even try to fix it... Can anyone help me?
Title: Re: Redirection Boards
Post by: peony on August 08, 2008, 01:41:48 PM
I decided to stick with the default theme, so that I can avoid a lot of future difficulties when using other mods.

Does anyone know why I can't see the redirect text on the forums page, though? I attached a picture of what appears.

Thanks!
Title: Re: Redirection Boards
Post by: Johno69 on August 08, 2008, 10:45:39 PM
looks like it didn't update your language file, check that manualy.
Title: Re: Redirection Boards
Post by: peony on August 10, 2008, 08:46:00 PM
Hi Johno69,

Thanks for your reply! The language file did look like it was missing some information. I followed the manual install instructions and updated the file.

However, I still can't see any text for the redirected boards.... just numbers.
Title: Re: Redirection Boards
Post by: peony on August 18, 2008, 12:40:07 PM
Hello,

I think I found a clue as to what could be causing the problem. When I look at the information on the visitors of the board, I see that the following error message is reported:

8: Undefined index: redirected_clicks
File: /home/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 186

Below is an excerpt of the code from the file involved. Line 186 is the one in red.

         <tr>
            <td colspan="3" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">
               <span class="smalltext"><b>', $txt['parent_boards'], '</b>: ', implode(', ', $children), '</span>
            </td>
         </tr>';
            }
         }
         echo '
      </table>';
      }
      echo '
   </div>';
   }

Does anyone know what the problem might be?

Thank you in advance!
Title: Re: Redirection Boards
Post by: Adish - (F.L.A.M.E.R) on August 21, 2008, 11:58:48 AM
I had some problems and then i uninstalled this mod.. But now in the board.. the tick box for the redirection still remains.. i tried alot to remove the box from the files as such but didnt get the solution. This is causing me 29 error pages at a time as i go to the create new board... so please help me fast...
Title: Re: Redirection Boards
Post by: Adish - (F.L.A.M.E.R) on August 22, 2008, 09:56:41 AM
Phew.... I atlast got it removed.. anyways thanks to the one who was trying to answer my question.
Title: Re: Redirection Boards
Post by: cheshirex on August 24, 2008, 10:00:03 PM
I'm wondering if I could use this application paired with a blog mod.  What I'd like to be able to do is create a "Random Blog" link that would take you to any of (let's say for the time being) 10 blogs listed.

So - anyone know if there's any way to set it up to allow more than one link per redirect board AND choose a link at random? 

*wishful thinking*  Thanks in advance for any answers I get.
Title: Re: Redirection Boards
Post by: HostDash on August 26, 2008, 12:57:50 PM
very nice thanks - you should try make an image so it doesnt show newposts/no new posts icon and an re-directing icon
Title: Re: Redirection Boards
Post by: istup on August 28, 2008, 02:16:49 AM
Quote from: Oldiesmann on October 18, 2004, 07:01:58 AM
Link to Mod (http://mods.simplemachines.org/index.php?mod=38)

This provides the functionality for redirecting users when they enter certain boards. Several new options will appear in the "Modify Boards" section of the admin center.

NEW! Version 2.01 released (September 30th, 2006)!

New features:
No new features in this version. Just bugfixes and compatibility with 1.0.8 and 1.1 RC3

Note: Due to the number of bugs in 2.0, you can't upgrade from it. You will need to uninstall it first and re-install this version instead.

Let me know if you have any problems or questions.

Update (9/30/06): Fixed some more bugs and updated the mod to work with 1.0.8 and 1.1 RC3...

Screenshots attached...
First screenshot shows default "Modify Board" screen.
Second screenshot shows several additional redirection boards settings that show up after you check the "Make this a redirection board" box (ah the fun of Javascript).
The third screenshot shows a default redirection board. The "--" column can be hidden by checking the box next to Hide "topics and posts" for redirection boards in the "Edit Features and Options" section (1.0.x) or "Manage Boards -> General Settings" section (1.1). If you aren't counting clicks, "N/A" is displayed instead of the number of clicks.

Test: http://smf.oldiesmann.us/index.php / http://smf.oldiesmann.us/index.php?board=93

I tried to install this mod but i got error...

1.     Execute Code     RedirectPdb.php     
2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
3.    Execute Modification    ./Sources/Load.php    Test successful
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test successful
8.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test successful
9.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
10.    Execute Modification    ./Themes/babylon/BoardIndex.template.php    Test successful
11.    Execute Modification    ./Themes/babylon/MessageIndex.template.php    Test successful
12.    Execute Modification    ./Themes/classic/BoardIndex.template.php    Test successful
13.    Execute Modification    ./Themes/classic/MessageIndex.template.php    Test successful
14.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
15.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful

Can you pls help to solve this issue
Title: Re: Redirection Boards
Post by: Adish - (F.L.A.M.E.R) on September 02, 2008, 09:24:51 AM
I am getting errors in the error log when i go to create a redirection board.

Here are the errors..

8: Undefined index: permission_mode
File: /home/goldysun/public_html/Themes/default/ManageBoards.template.php (modify_board sub template - eval?)
Line: 409

And same on Lines 410,411 and 412

This is the Url it shows me that it has came from:- http://goldysun.com/index.php?action=manageboards;sa=newboard;cat=1

Please let me know whats the solution, thank you.
Title: Re: Redirection Boards
Post by: Hoochie Coochie Man on September 06, 2008, 04:10:21 AM
Quote from: Rosenstein on July 05, 2008, 08:43:38 PM
I think you shouldn't replace in  "./Sources/ManageBoards.php"
Quote 'permission_mode' => 'normal',
with
Quote
'is_redirect' => 0,
'count_clicks' => 0,
'target' => '',
'url' => '
But, instead add after
Quote 'permission_mode' => 'normal',
Because, when you replace it it gives "8: Undefined index: permission_mode" error.

Thanks for this tip.

and thanks for the mod, I think this tip should added to packege, because if it's not, we are getting "Undefined index: permission_mode" error"

and here is Turkish Language:

Help.turkish.php
$helptxt['redirect_target'] = 'Hedef URLnin açılacağı pencere. Yönlendirilmiş bölümü aynı pencerede açmak istemiyorsanız bu ayara ihtiyaç duyarsınız.
Hedef bir pencerenin ismi veya takip eden isimlerden biri olabilir:<br />
_blank - Yeni bir pencerede aç<br />
_parent - üst framesette aç<br />
_self - Aynı framede aç<br />
_top - Aynı pencerede aç, frame dışında';
$helptxt['enable_redirect'] = 'Bağlı olmaksızın ya da bunu bir yönlendirme bölümü yapmamak. Yönlendirme bölümü, üyeyi tıkladığında başka bir linke yönlenmesini sağlayan bölümdür.
<b>Not:</b> Bu bölümü yönlendirilmiş bölüm yapmadan önce
lütfen bölümün boş ya da herhangi bir alt bölümü olmadığından emin olun.
Ayrıca şunuda bilin ki, o bölümü görüntülemeye izni olmayanlar bile direk
url ile yönelndirilmiş bölüme giriş yapabilirler...';
$helptxt['redirect_hide_columns'] = 'Eğer seçilense, bu yönlendirilmiş bölümün mesaj ve konu sayılarını saklayacaktır.
Default temada, "X mesaj Y konu" sütunu saklanır. Babylon temada, "X mesaj in Y konu" sütunu saklanır, ve Classic temada, "mesaj" and "konu" sütunu saklanır. Eğer bu seçilmemişse "--" onun yerine gösterilir.';


Modifications.turkish.php
$txt['redirected_click'] = '<b>1</b> yönlendirilmiş tıklama';
$txt['redirected_clicks'] = ' yönlendirilmiş tıklamalar';
$txt['redirect_count_clicks'] = 'Tüm tıklamaları say?';
$txt['redirect_count_clicks_desc'] = 'Bu, kaç kere üyelerin yönlendirildiğini sayacak.';
$txt['redirect_enable'] = 'Bu bölümü yönlendir.';
$txt['redirect_enable_desc'] = 'Bu, bölüme giriş yapan üyeleri, sizin seçtiğiniz bir linke yönlendirecek.';
$txt['redirect_location'] = 'Üyenin yönlendirileceği URL ';
$txt['redirect_hide_columns'] = 'Yönlendirilmiş bölümler için "mesaj" ve "konu" ları gizle.';
$txt['redirect_no_child'] = 'Yönlendirilmiş bölümler alt bölümlere sahip olamaz!';
$txt['redirect_no_url'] = 'Yönlendirilmiş bölümler bir URLye sahip olmalıdır!';
$txt['redirect_reset_clicks'] = 'Tıklama sayacını sıfırla';
$txt['redirect_reset_clicks_desc'] = 'Tıklama sayacını sıfıra(0) sıfırlayacak.';
$txt['redirect_target'] = 'URL için hedef';
$txt['redirect_target_desc'] = 'Yeni linke yönlendirmek için hedef (_blank)';
Title: Re: Redirection Boards
Post by: fyndler on September 21, 2008, 10:25:48 PM
Hi i use the Dark Fantasy theme and i have read the manuall file but i dont get what he really means :/

Could someone make a easyer explination for me ? :)

Thanks
Title: Re: Redirection Boards
Post by: Goodman854 on October 17, 2008, 11:44:25 PM
3.     Execute Modification     ./Sources/Load.php     Test failed
4.    Execute Modification    ./Sources/ManageBoards.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
7.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
Title: Re: Redirection Boards
Post by: GravuTrad on October 26, 2008, 02:55:24 PM
http://www.simplemachines.org/community/index.php?topic=165657.msg1057649#msg1057649
Title: Re: Redirection Boards
Post by: fyndler on October 28, 2008, 11:56:56 PM
On my forum it only says 0 posts 0 topics :/

Ye si have another theme but as i said before i dont know what to edit,can anybody please help me ?
Title: Re: Redirection Boards
Post by: TroyG on November 19, 2008, 02:30:19 PM
How do I uninstall this package. It is Redirection Boards 2.01 , in my package manager there is no option to uninstall it. I am running SMF 1.1.7. I need help, ever since I upgraded to 1.1.7 it has been throwing 6 errors everytime some one comes to the site. I no longer need it. I just need help deleting it.
Title: Re: Redirection Boards
Post by: TroyG on November 19, 2008, 02:31:32 PM
Here is the errors it keep making.....

TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: is_redirect
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 239

   TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: redirect_target
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 235

   TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: redirect_url
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 234

   TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: redirect_count_clicks
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 233

   TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: redirect_count_clicks
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 232

   TroyG   Today at 12:58:41 pm 
72.34.188.13     48cb1e9a91e3d24acb9fa4f077a509ce 
http://www.volkstalk.com/forum/index.php?board=35.0 
8: Undefined index: is_redirect
File: /usr/home/volkstalk/public_html/forum/Sources/MessageIndex.php
Line: 231

Title: Re: Redirection Boards
Post by: swtdivalove on December 06, 2008, 10:04:13 AM
I have some fun to deal with myself...

No redirection information exists when creating a new board.

So, I am attempting to uninstall and all the files are failing.

I really do need this mod to work.
Title: Re: Redirection Boards
Post by: fyndler on December 19, 2008, 04:50:56 PM
Still need help using dark fantasy could anyone help me when they got time ? :P
Title: Re: Redirection Boards
Post by: jose_ugs on February 06, 2009, 12:19:35 PM
super baaad add-on. Thanks a zilliooonnnn!!! I was searching for this sh$t for a loooong time ... brilliant work !!!
Title: Re: Redirection Boards
Post by: pspotential on February 25, 2009, 04:34:55 PM
all the tests were successful except the
sources/load.php
so i installed the mod replaced the load.php with the original n manually modded it the mod shows the board as a re directional board but when clicked it goes into the board and doesn't redirect it to the url
anyone else had this problem and know how to solve it
Title: Re: Redirection Boards
Post by: Bec on April 04, 2009, 08:47:51 AM
anyone still supporting this mod?
Title: Re: Redirection Boards
Post by: Bec on April 05, 2009, 10:48:00 PM
I took my chances and installed it and it failed on the following:-

/default/MessageIndex.template.php
/default/BoardIndex.template.php     
./Sources/BoardIndex.php 
./Sources/ManageBoards.php
./Sources/Load.php    

So I did the manual edits but it came up with this parse error..

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/buctai8/public_html/Sources/BoardIndex.php on line 203

Would really appreciate it if someone could please tell me why and how to fix it.... the original file had the ) on line 203 but since making the edits it has moved it down a few lines..  Have attached my file!

Thanks :)
Title: Re: Redirection Boards
Post by: PalmBeachPreps on April 13, 2009, 01:11:55 PM
Is there any way to change the "folders" to custom ones just for the links as in the attached screenshot?
Title: Re: Redirection Boards
Post by: MaXiMiUS on May 20, 2009, 06:31:39 AM
I have this working on SMF 1.1.8 all except for one flaw..

It doesn't list the number of redirects for child boards, even if I tell it to.

Everything else works perfectly fine.
Title: Re: Redirection Boards
Post by: ttuu on May 20, 2009, 08:31:57 AM
You can add a function to define which groups it will do Redirection and only those groups that will be active?
Title: Re: Redirection Boards
Post by: shaitanfr on June 07, 2009, 11:30:58 AM
Typo found

Hide "posts" and "topics" for redirection boards check box don't work in boards settings.


When you check the box and save, it's the checkbox : Enable recycling of deleted topics  for redirection boards who remain checked :o
(no sure you undestand my English but try yourself)
Solution:


modification_1-1_part1.xml
Search at the end:

<input type="checkbox" name="recycle_enable"

Replace by:

<input type="checkbox" name="redirect_hide_columns"

This mod work fine with SMF 1.1.9
Title: Re: Redirection Boards
Post by: Lighting_site on June 11, 2009, 01:27:47 AM
is this work fine under 1.1.9?
Title: Re: Redirection Boards
Post by: shaitanfr on June 11, 2009, 04:18:19 AM
I did a little test Under 1.1.9  and no problems
Title: Re: Redirection Boards
Post by: Lighting_site on June 11, 2009, 12:53:07 PM
Than you ;D
Title: Re: Redirection Boards
Post by: BarfBag on July 08, 2009, 03:49:22 PM
Quote from: AlreeGator on April 13, 2009, 01:11:55 PM
Is there any way to change the "folders" to custom ones just for the links as in the attached screenshot?

I'm bumping this question, because I need to find this out as well.
Title: Re: Redirection Boards
Post by: aw06 on July 10, 2009, 11:05:03 PM
I'm not seeing most of the lines of codes to edit in my costum theme ...
Title: Re: Redirection Boards
Post by: nathan42100 on July 12, 2009, 02:20:47 AM
Look for the comments or parts of what it says. Custom themes usually don't have the same layout
Title: Re: Redirection Boards
Post by: GravuTrad on July 15, 2009, 12:20:43 AM
is it ok with 1.1.10?

i have:

8: Undefined index:  redirected_clicks
Fichier: /Themes/default/BoardIndex.template.php (main sub template - eval?)
Ligne: 198
Title: Re: Redirection Boards
Post by: shaitanfr on July 15, 2009, 05:01:07 AM
Hello GravuTrad,

It work for me with 1.1.10

Title: Re: Redirection Boards
Post by: Roger Rabbit on July 26, 2009, 01:51:28 AM
it is working with 1.1.10...however, redirected hits are not counted... :(
Title: Re: Redirection Boards
Post by: GravuTrad on July 26, 2009, 07:35:19 AM
Quote from: GravuTrad on July 15, 2009, 12:20:43 AM
is it ok with 1.1.10?

i have:

8: Undefined index:  redirected_clicks
Fichier: /Themes/default/BoardIndex.template.php (main sub template - eval?)
Ligne: 198

and still this same error...
Title: Re: Redirection Boards
Post by: Roger Rabbit on August 01, 2009, 03:32:54 AM
Quote from: Roger Rabbit on July 26, 2009, 01:51:28 AM
it is working with 1.1.10...however, redirected hits are not counted... :(

well...my bad...it is working perfectly with 1.1.10...i just forgot to check the count redirect clicks... :)
Title: Re: Redirection Boards
Post by: Montrose on October 13, 2009, 02:34:36 PM
Hi,

I am trying to download this mod. The /Themes/default/BoardIndex.template.php and /Sources/Load.php came up as Test Failed, so I went to edit the files manually. The Load.php should be okay as I can find all the edits.

However the BoardIndex.template.php is diffierent. I think there is another mod already made an edit in that file so I don't know where to make the changes.

Can someone help. If you can, let me know what info you need from me.

Thanks.
Title: Re: Redirection Boards
Post by: Montrose on October 23, 2009, 09:56:52 AM
I assume this mod isn't being supported anymore? :(
Title: http://custom.simplemachines.org/mods/index.php?mod=38
Post by: the-amazing.co.cc on February 26, 2010, 07:07:39 PM
http://custom.simplemachines.org/mods/index.php?mod=38
i got set up and dis work but
has anyone got sceen print so i can see wot go where as there no text wiv the mod
i had to guss where url go i just wot know wot 2 boxs r for
i noted the mod dis show it text to tell me wot box do
Title: Re: http://custom.simplemachines.org/mods/index.php?mod=38
Post by: Oldiesmann on February 27, 2010, 12:27:58 PM
It only includes regular English strings by default. If you're using English-UTF8 or a language other than English, you will need to copy the language strings from Modifications.english.php to the Modifications language file for the language you're using.

Edit: Merged topic with support topic for this mod.
Title: Re: Redirection Boards
Post by: the-amazing.co.cc on February 27, 2010, 07:45:03 PM
ok i dont get wot i need to do
Quote from: Oldiesmann on February 27, 2010, 12:27:58 PM
It only includes regular English strings by default. If you're using English-UTF8 or a language other than English, you will need to copy the language strings from Modifications.english.php to the Modifications language file for the language you're using.

Edit: Merged topic with support topic for this mod.

thank you for anyone who didnt get it
i make it easy here
If you're using English-UTF8 or a language other than English
go to where u find the mod where u download it
then Installation Instructions for wot ever u got
then ./Themes/default/languages/Modifications.english.php copy the code
ok now go to ur host then /Themes/default/languages/Modifications.english.php
paste the code
save it ever think now cud be fine plz back up any find and start and end
Title: Re: Redirection Boards
Post by: pinoypetfinder on March 31, 2010, 06:41:52 AM
been trying to look for an april fools' joke this year (i tried nars' last year mod)
and this one caught my attention. however, i;m not sure if this mod is still working.

i was thinking of setting up a new board, and then redirect them on a page that would say they're ban for trying to access a private board :P
Title: Re: Redirection Boards
Post by: aw06 on March 31, 2010, 12:11:36 PM
Why when i open the first page of this post it's asking me to log into some other site ???
Title: Re: Redirection Boards
Post by: Arantor on March 31, 2010, 12:12:41 PM
Because someone has a signature or other image that requires a login now but didn't originally.
Title: Re: Redirection Boards
Post by: aw06 on March 31, 2010, 12:14:45 PM
Quote from: Arantor on March 31, 2010, 12:12:41 PM
Because someone has a signature or other image that requires a login now but didn't originally.

OK, somebody need to edit and remove that mess
Title: Re: Redirection Boards
Post by: Taija299 on April 22, 2010, 03:25:38 PM
I'm using this mod with version 1.1.11 and it works alright except that for some reason it doesn't let me hide 'topics and posts'. I can check the box, but it'll return to unchecked when I save and nothing changes.

Any ideas, or will I just have to deal with it?

EDIT// Never mind, never mind. I looked at the manual instructions and realized that my theme was casuing the problem. I changed some of the code of "BoardIndex.template.php" and voilà!
Title: Re: Redirection Boards
Post by: pointalk on June 01, 2010, 04:46:05 AM
please upgrade for smf1.1.11
Title: Re: Redirection Boards
Post by: Carlos Faria on July 08, 2010, 03:38:14 PM
I need help ...

I've been changing the code BoardIndex.template.php and managed to put "--" for messages, but can not put "--" in the topics. Someone help me?

Print:

(http://i32.tinypic.com/2kesgp.jpg)

SMF 1.1.11


BoardIndex.template.php is annexed.


Thanks!
Title: Re: Redirection Boards
Post by: sharks on July 08, 2010, 08:11:45 PM
If only someone would upgrade this great modification for SMF 1.1.11. :(
Title: Re: Redirection Boards
Post by: Carlos Faria on July 12, 2010, 07:57:14 AM
Quote from: [T]uGa [M]aSter on July 08, 2010, 03:38:14 PM
I need help ...

I've been changing the code BoardIndex.template.php and managed to put "--" for messages, but can not put "--" in the topics. Someone help me?

Print:

(http://i32.tinypic.com/2kesgp.jpg)

SMF 1.1.11


BoardIndex.template.php is annexed.


Thanks!
Title: Re: Redirection Boards
Post by: Carlos Faria on July 16, 2010, 12:17:26 PM
Anyone?
Title: Re: Redirection Boards
Post by: sharks on July 18, 2010, 12:32:55 AM
I installed the package in the first post of the thread and no errors but when i try it out, Firefox gives an error that the server is trying redirect to a page in a way that will never complete.
Title: Re: Redirection Boards
Post by: Carlos Faria on July 18, 2010, 08:22:45 PM
Quote from: [T]uGa [M]aSter on July 08, 2010, 03:38:14 PM
I need help ...

I've been changing the code BoardIndex.template.php and managed to put "--" for messages, but can not put "--" in the topics. Someone help me?

Print:

(http://i32.tinypic.com/2kesgp.jpg)

SMF 1.1.11


BoardIndex.template.php is annexed.


Thanks!
Title: Re: Redirection Boards
Post by: Bruno36 on September 26, 2010, 03:26:18 AM
Hello!

A version for SMF 2.0 RC3 is planned?
Title: Re: Redirection Boards
Post by: Oya on September 26, 2010, 05:20:23 AM
Quote from: Bruno36 on September 26, 2010, 03:26:18 AM
Hello!

A version for SMF 2.0 RC3 is planned?

why, when it's built into 2.0 series anyway?
Title: Re: Redirection Boards
Post by: Bruno36 on September 26, 2010, 05:30:36 AM
If the forum contains messages that is not possible

QuoteRedirect a web address
Note: the section should be empty of topics to enable this option.
Title: Re: Redirection Boards
Post by: Oya on September 26, 2010, 05:49:50 AM
then u create a new board in place of the old one and hide or delete the old one
Title: Re: Redirection Boards
Post by: aw06 on January 25, 2011, 11:37:34 AM
Hello Oldiesmann, Nice Mod ...  8)

Trying to install this on 1.1.12 .... Not seeing some of the lines of codes in my files...
Can you take a look at my files... and maybe add your code ..

Thank in Advance
Title: Re: Redirection Boards
Post by: Flight_Info_UK on March 05, 2011, 07:35:58 PM
Hello

I have loaded this into packages and i cant find it in my admin panel.
Title: Re: Redirection Boards
Post by: pengshiming on April 03, 2011, 06:06:45 AM
I've successfully installed the Redirection Boards mod through "Packages" in the Admin Control Panel. After reading some of the past posts, I pose some questions upon the community to help answer. I'm using SMF 1.1.13 with the theme Circir 1.1.5.

After installation, through the "Features and Options" page.. there were no updates to the options available. (According to one post, it is suppose to be near "Override members theme.") Due to the use of an alternate theme, it happens that I am required to manually edit the index.template.php file. While the language file "should" have been edited along with the installation of the mod.

So.. I go into the theme folder and look through the files and fine one named "BoardIndex.template.php" and decide to go through there. I seemed as though I couldn't find any of the lines I was suppose to find. (One post assumes to download the SMF default theme and extract the ModifyBoard.php(?), but what would the steps before that and could I also get a link.)

Continuing on, as I was in the "BoardIndex.template.php" file, I decided to add in the missing lines and tried saving. I gave me an unexpected error, even though it was copy and pasted directly from the primary source.

So, basically.. I kind of want a step-by-step approach on how I could be going about this.. while running SMF 1.1.13 with the theme Circir 1.1.5. Thank you very much.
Title: Re: Redirection Boards
Post by: pengshiming on April 03, 2011, 07:56:31 PM
Can anyone give support for this mod, please and thank you.
Title: Re: Redirection Boards
Post by: pinggarcia on June 23, 2011, 09:45:33 PM
I just downloaded this mod, and install it in my forum 1.1.11 version, and works perfectly well.


My question, if I may - is there a way to cloak the url of the forwarded URL?


TIA
Title: Re: Redirection Boards
Post by: GravuTrad on October 19, 2011, 07:40:15 AM
Hi.

Works with 1.1.15 update but i have this in the error log:

8: Undefined index:  redirected_clicks
Fichier: /Themes/default/BoardIndex.template.php (main sub template - eval?)
Ligne: 198


Any idea of the problem?

Nobody interested to update the mod to 1.1.15 version?