• Welcome to Simple Machines Community Forum. Please login or sign up.
November 28, 2021, 06:40:57 PM

News:

SMF 2.1 RC4 has been released! Try it out and help us test! :) Read more.


Redirection Boards

Started by Oldiesmann, October 18, 2004, 07:01:58 AM

Previous topic - Next topic

SeaOfSin

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!

SeaOfSin


atambo

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?

white1

hmm same problem!!! how can we get rid of the 0 post count?

SeaOfSin

July 20, 2005, 03:22:01 AM #44 Last Edit: July 20, 2005, 03:28:55 AM by Sea Of Sin
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!

atambo

thanx a bunch! working good now  :D

Oldiesmann

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.
Michael Eshom
Cincy Space - now open!

winnet

maybe you will find a little time to implement the counting of visitors features.
10x

taz

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

Scubasteve

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
If it aint broke, break it.

Scubasteve

If it aint broke, break it.

1948Pal

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
"No matter how long the river, the river will reach the sea".
Eugene Fitch Ware

amanoffewwords


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...).

hxxp:www.ecusb.net [nonactive]

atambo

I've got this running on 1.1 beta 3 and it seems to work fine...check it out at www.twuclan.net/forums/ [nofollow]

winnet



winnet


MaximoDecimoMeridio

I think that this mod have to been incluse in the official smf package.
hxxp:www.lanostracasa.biz [nonactive]

dknoppix

Umm..I'm kinda a n00b to SMF, but how do you install this? And where do you upload this?

dk

Scubasteve

yea this for rc1 would be sweet
If it aint broke, break it.

Advertisement: