Shared Forum Mod

Started by Goosemoose, January 06, 2006, 03:04:39 AM

Previous topic - Next topic

MarkJ

Hi

Another problem has reared it's ugly head though after the Shared Forum mod - recentpost urls.  I don't think this looks hard to fix but the urls that is uses are off the mainboard and not the urls of the Shared Forum Categoies.  I was using this code:

<?php

$array 
ssi_recentTopics(5, array(2,243,244,245,246,247,248,249,250
), 'array');

foreach (
$array as $recent)
{
  
$subject html_entity_decode($recent['subject']);
  if (
strlen($subject) > 150)
    
$subject htmlentities(substr($subject0150)) . '...';
  else
    
$subject $recent['subject'];
echo 
' Subject: <a target="_top" href="'$recent['href'], '" title="Board: '$recent['board']['name'], ' - Poster: '$recent['poster']['name'], '">'$subject'</a>
Forum: '
$recent['board']['link'], ' '$recent['new'] ? '<a target="_top" href="' $scripturl '?topic=' $recent['topic'] . '.from' $recent['newtime'] . ';topicseen#new"><img src="' $settings['images_url'] . '/' $context['user']['language'] . '/new.gif" alt="' $txt[302] . '" border="0" /></a>' ''' Poster: ',$recent['poster']['name'],'
<br/><hr color="#C0C0C0" size="1">'
;
}

?>


Is it possible to use the new Joomla urls for the above?

Regards - Mark

Goosemoose

I'm sure it's possible but I haven't seen an easy way since the url's are being generated from another file. I've just left it as is and it really hasn't caused any problems on my site.

MarkJ

I notice that the Latest Post at the bottom of the forums is ok.  The url is correct.  I am wondering whether it can be adjusted so that it displays say 5 latest post urls along with the name of the poster etc just like the Recentpost code I previously used.  Would be indeal?

Goosemoose

Where exactly are you looking at? Can you give me a link?

MarkJ

Well I have 7 forums now using the Shared Forum Mod and I have stopped direct access to the main forum with a redirect.  If you look at my Gaming Forum at the very bottom - Forum Stats - Latest Post - you will see that it shows part of the latest post for Gaming only.  The same is on the other Forums.  The ideal solution would be to be able to use that code with SSi so I could post 5 latest posts inside my Gaming section.  Here is the Gaming forum link:

http://bluesplayer.co.uk/home/index.php?option=com_smf&Itemid=26&forum=daoc

MarkJ

I used this code:
Quote
if (!WIRELESS && empty($_REQUEST['option'])){   
   header('Location: http://bluesplayer.co.uk/home/index.php?option=com_content&task=view&id=22&Itemid=');
}

To redirect users from the main board but I found out my character recognition (Visual verification) on registering stopped working?

Iomega0318

I am just curious, and have read every post in this thread lol.. Does anyone have the edits for this to work without Joomla, I tried the edit in that one post here and it did not work...
UOFreeshards.net
UOFreeshards.net 2.1 Aplha Test Site
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

MarkJ

QuoteI am just curious, and have read every post in this thread lol.. Does anyone have the edits for this to work without Joomla, I tried the edit in that one post here and it did not work...

Are you refering to the complete mod?  Working a treat on my site.

This is my forum:
http://bluesplayer.co.uk/media/smf/

Try the top menu links to the different forums - Arcade, Computers etc.  If this is what you are trying to achieve I can help perhaps though Goosemoose really is the one you need to chat too.  I will though state exactly how I did it on my forum for you. 

Regards - Mark


Iomega0318

Quote from: MarkJ on May 10, 2007, 08:20:25 PM
QuoteI am just curious, and have read every post in this thread lol.. Does anyone have the edits for this to work without Joomla, I tried the edit in that one post here and it did not work...

Are you refering to the complete mod?  Working a treat on my site.

This is my forum:
http://bluesplayer.co.uk/media/smf/

Try the top menu links to the different forums - Arcade, Computers etc.  If this is what you are trying to achieve I can help perhaps though Goosemoose really is the one you need to chat too.  I will though state exactly how I did it on my forum for you. 

Regards - Mark
Kind of but you are using Joomla too are you not? I don't use nor want to use Joomla..
Quote from: Goosemoose on May 10, 2007, 11:37:48 PM
Iomega, check out http://www.simplemachines.org/community/index.php?topic=158330.msg1041585#msg1041585
Yes I took a look at that one and it seems it was made for SMF+TP and I don't use nor want to use TP lol, I get a few errors when I try and install it and I am guessing they are just because I don't have TP
UOFreeshards.net
UOFreeshards.net 2.1 Aplha Test Site
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

Sarge

Quote from: Iomega0318 on May 11, 2007, 05:42:08 AM
Quote from: Goosemoose on May 10, 2007, 11:37:48 PM
Iomega, check out http://www.simplemachines.org/community/index.php?topic=158330.msg1041585#msg1041585
Yes I took a look at that one and it seems it was made for SMF+TP and I don't use nor want to use TP lol, I get a few errors when I try and install it and I am guessing they are just because I don't have TP

I'm the author of that mod, and yes, it is made for SMF+TP simply because the easiest way to add links to subforums would be through a TP block. But TP is not inherently necessary for the mod to work.

If you tell me where should the mod add links/buttons to the subforums, I can make a SMF-only version for you.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Iomega0318

#231
Perhaps adding a mouse over drop down menu called Forums on the link bar with the Home Help Search buttons, is that possible? Perhaps right after the Home button, have it go Home Forums Help.. Does that make since? Also thanx for the quick reply, I posted in your topic what errors I was getting
UOFreeshards.net
UOFreeshards.net 2.1 Aplha Test Site
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

Sarge

Quote from: Iomega0318 on May 11, 2007, 08:16:35 AM
Perhaps adding a mouse over drop down menu called Forums on the link bar with the Home Help Search buttons, is that possible?

It is possible, and in fact that's what I'd like. I just don't know how to do it. :)

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Iomega0318

lol, well I can look into how to make it I just don't know where the code would go or how to make it work lol, let me jump around for a bit and see if I can find some coding for ya, then you can make it all work smoothly :)
UOFreeshards.net
UOFreeshards.net 2.1 Aplha Test Site
"I believe in Christianity as I believe in the sun...
not because I see it but because by it I see everything else."
C.S. Lewis

Heed what I say, for it shall be mentioned only once.

Sarge


    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Hotel

#235
how to do it whith mambo this works for me bu no garentes
find in smf.php
$myurl = $configuration->get('mosConfig_live_site') . '/index.php?option=com_smf&amp;Itemid=' . $Itemid . '&amp;';
and replace whtih
$myurl = $configuration->get('mosConfig_live_site') . '/index.php?option=com_smf&amp;Itemid=' . $Itemid . '&amp;'
      . (isset($_REQUEST['forum']) ? 'forum='.$_REQUEST['forum'].'&amp;' : '');


find
$myurl = 'index.php?option=com_smf&amp;Itemid=' . $_REQUEST['Itemid'] . '&amp;';
replace whith
$myurl = 'index.php?option=com_smf&amp;Itemid=' . $_REQUEST['Itemid'] . '&amp;'
      .  (isset($_REQUEST['forum']) ? 'forum='.$_REQUEST['forum'].'&amp;' : '');


my site is harry.dayfamilyweb.com [nofollow]

ilvjuliet

smf is new to me.I just want to integrate one  smf forum to one joomla.
What should I do?

Sarge

Quote from: ilvjuliet on June 17, 2007, 07:22:32 AM
smf is new to me.I just want to integrate one  smf forum to one joomla.
What should I do?

Use the bridge. :) Check out the sticky topics in this board.

    Please do not PM me with support requests unless I invite you to.

http://www.zeriyt.com/   ~   http://www.galeriashqiptare.net/


Quote
<H> I had zero posts when I started posting

Dejv

Hi,

I need to use more forums on different domains sharing the same database but with different default theme because of fixed google api key in each BoardIndex.template.php, and other templates...
Using this mod, can I choose for each forum version from where the default theme should load?
I hope this is what I am looking for  :)

Thanks a lot,
David
SMF 1.1.20

Goosemoose

Hi Dejv,
It will work for you but it will require some work on your part. First, the domains would have to be hosted on the same server and be able to all access the same mysql database. You can write a few lines of code to detect the current domain and change the template depending on which one it is. I would also set up symlinks so that each domain actually uses the same smf folder.

Advertisement: