Advertisement:

Author Topic: Redirection Boards  (Read 202782 times)

SeaOfSin

  • Guest
Re: Redirection Boards
« Reply #40 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

Code: [Select]
b.ID_THEME, b.override_theme, b.use_local_permissions

instead of looking for that it needs to find

Code: [Select]
b.ID_THEME, b.override_theme, b.permission_mode, b.countPosts

and add

Code: [Select]
, b.redirect
after it.

I believe that is the only change needed!

SeaOfSin

  • Guest
Re: Redirection Boards
« Reply #41 on: July 17, 2005, 06:02:19 PM »
it works fine for me! :)

Offline atambo

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
  • twuclan.net
    • http://www.twuclan.net
Re: Redirection Boards
« Reply #42 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?

Offline white1

  • Semi-Newbie
  • *
  • Posts: 15
Re: Redirection Boards
« Reply #43 on: July 19, 2005, 09:00:49 AM »
hmm same problem!!! how can we get rid of the 0 post count?

SeaOfSin

  • Guest
Re: Redirection Boards
« Reply #44 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
Code: [Select]
// 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
Code: [Select]
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

Code: [Select]
<span class="smalltext">
and
Code: [Select]
</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!
« Last Edit: July 20, 2005, 03:28:55 AM by Sea Of Sin »

Offline atambo

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
  • twuclan.net
    • http://www.twuclan.net
Re: Redirection Boards
« Reply #45 on: July 20, 2005, 03:57:32 AM »
thanx a bunch! working good now  :D

Offline Oldiesmann

  • Developer
  • SMF Super Hero
  • *
  • Posts: 24,814
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Redirection Boards
« Reply #46 on: July 28, 2005, 06:39:05 PM »
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
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

winnet

  • Guest
Re: Redirection Boards
« Reply #47 on: July 28, 2005, 09:12:27 PM »
maybe you will find a little time to implement the counting of visitors features.
10x

Offline taz

  • Semi-Newbie
  • *
  • Posts: 74
Re: Redirection Boards
« Reply #48 on: July 30, 2005, 05:16:07 PM »
I'll try to update it to 1.1 Beta 3 Public soon.

Thanks that is what I was going to ask for

Offline Scubasteve

  • Jr. Member
  • **
  • Posts: 293
Re: Redirection Boards
« Reply #49 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
If it aint broke, break it.

Offline Scubasteve

  • Jr. Member
  • **
  • Posts: 293
Re: Redirection Boards
« Reply #50 on: August 19, 2005, 01:18:09 AM »
anyone?
If it aint broke, break it.

Offline 1948Pal

  • Jr. Member
  • **
  • Posts: 389
  • Gender: Male
    • The Struggle for a free Palestine
Re: Redirection Boards
« Reply #51 on: August 29, 2005, 05:30:08 PM »
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

Offline amanoffewwords

  • Newbie
  • *
  • Posts: 8
  • Gender: Male
    • Esvon Classifieds Unofficial Support Board
Re: Redirection Boards
« Reply #52 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...).

 
hxxp:www.ecusb.net [nonactive]

Offline atambo

  • Semi-Newbie
  • *
  • Posts: 14
  • Gender: Male
  • twuclan.net
    • http://www.twuclan.net
Re: Redirection Boards
« Reply #53 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/ [nofollow]

winnet

  • Guest
Re: Redirection Boards
« Reply #54 on: September 17, 2005, 12:35:45 AM »
anyone working on this mod?
 :-\

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,831
  • My posts are my own
    • BlushyFace | A spoopy and creppy site
Re: Redirection Boards
« Reply #55 on: September 21, 2005, 12:09:57 PM »
is it updated for 1.1 beta 3 yet?

winnet

  • Guest
Re: Redirection Boards
« Reply #56 on: September 24, 2005, 09:19:26 AM »
update for RC1?

Offline MaximoDecimoMeridio

  • Newbie
  • *
  • Posts: 5
  • Gender: Male
    • lanostracasa.biz
Re: Redirection Boards
« Reply #57 on: September 24, 2005, 11:45:49 AM »
I think that this mod have to been incluse in the official smf package.
hxxp:www.lanostracasa.biz [nonactive]

Offline dknoppix

  • Semi-Newbie
  • *
  • Posts: 10
Re: Redirection Boards
« Reply #58 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

Offline Scubasteve

  • Jr. Member
  • **
  • Posts: 293
Re: Redirection Boards
« Reply #59 on: October 03, 2005, 02:15:14 AM »
yea this for rc1 would be sweet
If it aint broke, break it.