Main Menu
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 log in.

Who's Online

  • Dot Guests: 1288
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

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!

Simple portal y Multiple Stars

Started by minatohd, July 25, 2012, 06:38:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

minatohd

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:
<?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


Sapinho

me gustaria ayudarte pero desconoco ese mod