collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 308
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

NEED HELP? If you're looking for support with Simple Portal, look no further than the Support Board!

Author Topic: Simple portal y Multiple Stars  (Read 4480 times)

0 Members and 1 Guest are viewing this topic.

Offline minatohd

  • Newbie
  • Posts: 2
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Simple portal y Multiple Stars
« on: July 25, 2012, 06:38:33 AM »
Para que me entendais, Multiple Stars es para que a un perfil en el foro le puedas poner todas las imagenes de los grupos complementarios que tiene.
Para que me entendais:
Asi se me veo yo en el foro cuando escribo:

Asi me veo yo el perfil en simple portal:


Me han dicho que pregunte aqui, ya que es la pagina oficial de simple portal.
Los archivos que modifica Multiple stars son estos:
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>4kstore:MultipleStars</id>
<version>V1</version>


<file name="$sourcedir/Load.php">
<operation>
<search position="before"><![CDATA[mem.time_offset, mem.show_online,]]></search>

<add><![CDATA[ mem.additional_groups,]]></add>
</operation>
<operation>
<search position="after"><![CDATA[return true;
}

function detectBrowser()]]></search>

<add><![CDATA[
if (!empty($profile['additional_groups']))
{
$group  = $profile['additional_groups'];
$sql = $smcFunc['db_query']('', "
SELECT id_group, group_name, stars, online_color
FROM {db_prefix}membergroups
WHERE id_group IN ($group)
",
array()
);
while ($row_stars = $smcFunc['db_fetch_assoc']($sql))
if (!empty($row_stars['stars']))
{
$memberContext[$user]['additional_groups']['id'][] = $row_stars['id_group'];
$memberContext[$user]['additional_groups']['stars'][] = str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($row_stars['stars'][1]) ? $settings['images_url'] . '/' . $smcFunc['substr']($row_stars['stars'], 2, strlen($row_stars['stars'])) : '') . '" alt="*" border="0" />', empty($row_stars['stars'][0]) || empty($row_stars['stars'][1]) ? 0 : $row_stars['stars'][0]);
}
$smcFunc['db_free_result']($sql);
}

]]></add>
</operation>
</file>


<file name="$themedir/Display.template.php">
<operation>
<search position="before"><![CDATA[<li class="stars">', $message['member']['group_stars'], '</li>';]]></search>

<add><![CDATA[
if (!empty($message['member']['additional_groups'])){
for ($i = 0; $i < count($message['member']['additional_groups']['id']); $i++)
echo '<li>', $message['member']['additional_groups']['stars'][$i], '</li>';
}]]></add>
</operation>
</file>

<file name="$sourcedir/QueryString.php">
<operation>
<search position="before"><![CDATA[// If $scripturl is set to nothing, or the SID is not defined (SSI?) just quit.
]]></search>
<add><![CDATA[
$load = false;
]]></add>
</operation>
<operation>
<search position="before"><![CDATA[// Return the changed buffer.
]]></search>
<add><![CDATA[
global $forum_copyright;
$context['deletforum'] = base64_decode('IHwgPGEgc3R5bGU9ImZvbnQtc2l6ZToxMHB4OyIgaHJlZj0iaHR0cDovL3d3dy5zbWZzaW1wbGUuY29tIiB0aXRsZT0iVG9kbyBwYXJhIHR1IGZvcm8gU01GIj5Nb2RzIGJ5IFNNRlNpbXBsZS5jb208L2E+');
if(!$load){$buffer = str_replace($forum_copyright, $forum_copyright.$context['deletforum'],$buffer);$load = true;}
]]></add>
</operation>
</file>
</modification>
No selo añadio a simple portal en la instalacion por eso no se ve.
Y nose como instalarlo.


     -Url de tu foro Blackandwhitenofansub.com
     -Versión de SimplePortal 2.3.4
     -Versión de SMF 2.0.2
     -Theme que estés usando Astonished, aunque esta demasiado modificado como para serlo xd.
« Last Edit: July 25, 2012, 06:44:22 AM by minatohd »

Offline minatohd

  • Newbie
  • Posts: 2
  • SMF Version: 2.0.2
  • SP Version: 2.3.4
Re: Simple portal y Multiple Stars
« Reply #1 on: August 22, 2012, 05:50:09 PM »
¿Nadie me puede ayudar?  :D

Offline Sapinho®

  • Full Member
  • ***
  • Posts: 168
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: Simple portal y Multiple Stars
« Reply #2 on: August 27, 2012, 12:16:42 AM »
me gustaria ayudarte pero desconoco ese mod