News: Welcome to the TinyPortal Support site.

Login  |  Register
* *

Welcome !!!

Welcome, Guest. Please login or register.
Did you miss your activation email?
Please welcome dethpod, our newest member.

 
 

Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2015, 01:24:42 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3546
  • Latest: dethpod
Stats
  • Total Posts: 175496
  • Total Topics: 19955
  • Online Today: 53
  • Online Ever: 383
  • (January 02, 2015, 05:58:49 AM)
Users Online
Users: 1
Guests: 46
Total: 47

Please read the Posting Guidelines


Author Topic: FAQ, Modifikationen, Codeschnipsel  (Read 8367 times)

0 Members and 1 Guest are viewing this topic.

feline

  • Guest
FAQ, Modifikationen, Codeschnipsel
« on: January 17, 2006, 11:54:47 AM »
Da wir nur ein Board haben, mache ich hier mal einen RO-Topic auf, in dem ich alle FAQ's, Modificationen und Codeschnipsel sammele ...

Fel


PS: BITTE KEINE BEITRÄGE HIER POSTEN !!!!!
« Last Edit: January 19, 2006, 02:40:24 AM by feline »

feline

  • Guest
Login Fehler
« Reply #1 on: January 17, 2006, 11:59:56 AM »
8: Undefined index: TPortal
Datei: /homepages/31/d82319074/htdocs/rad_forum/Themes/default/Login.template.php (eval?)
Zeile: 220

Dafür gibt es ein Fix .. siehe hier

Fel
« Last Edit: January 17, 2006, 12:48:53 PM by feline »

feline

  • Guest
TP Themes für RC2 anpassen
« Reply #2 on: January 17, 2006, 12:02:51 PM »
Jo hast schon recht ;D Ich warte auch sehnlichst auf die 0.80 bzw. auf das Anpassen der TP-Themes an RC2 ;D

Was genau muss denn geändert werden ? ;D

Das ist marginal .. einmal die drei Zeile für shrink/upshrink der left/right/centerblocks erweiter und am ende des index.template.php ein paar Zeilen einfügen.

Code RC1:
Code: [Select]
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0);';

RC2:
Code: [Select]
                echo '
                        smf_setThemeOption("collapse_leftbar", mode ? 1 : 0, null, "' . $context['session_id'] . '")';

und am ende einfügen:
Code: [Select]
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

if (empty($button_strip))
return '';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';

$button_strip[$key] = $buttons[$key];
}

echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}

Für das neue Helpsystem gibts auch ein Fix ..muss ich nochmal raussuchen.


EDIT later:

Den Fix für das Helpsystem der RC2 findest du hier

Fel

crip

  • Guest
Re: FAQ, Modifikationen, Codeschnipsel
« Reply #3 on: January 19, 2006, 11:58:45 AM »
Where is Fe today?

Tommy

  • Guest
Re: FAQ, Modifikationen, Codeschnipsel
« Reply #4 on: April 22, 2007, 01:38:56 PM »
USER CP - An alternative to Profile Screen

Link zur Modifikation:
http://www.tinyportal.net/index.php?topic=9809.0

Deutsche Ãœbersetzung:


Code: [Select]
  echo'
<table border="0" width="100%" id="table1" cellspacing="1" style="border-collapse: collapse">
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=account"><img border="0" src="usercp/ksysguard.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=theme"><img border="0" src="usercp/kivio.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=theme;sa=pick;u=;sesc=', $context['session_id'], '"><img border="0" src="usercp/blockdevice.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=forumProfile"><img border="0" src="usercp/kuser.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=account"><b>Forumsaccount</a><br>
</b></font><font face="Verdana" size="1">Hier klicken, um Account zugehörige Informationen wie Namen, Passwort oder Email-Adresse zu ändern.</font></td>
  <td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=theme"><b>Design & Layout</a><br>
</b></font><font face="Verdana" size="1">Hier kannst du das das Forumsaussehen beeinflussen - wie das Forum für dich aussehen soll.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=theme;sa=pick;u=;sesc=', $context['session_id'], '"><b>Dein Theme</a><br>
</b></font><font face="Verdana" size="1">Hier klicken, um zur Theme-Auswahl zu gelangen.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=forumProfile"><b>Dein Profil</a><br>
</b></font><font face="Verdana" size="1">Hier kannst du die Profildarstellung ändern <br /> ( z.B. deine Signatur).</font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=statPanel"><img border="0" src="usercp/kwalletmanager.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=showPosts"><img border="0" src="usercp/kedit.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=notification"><img border="0" src="usercp/mailreminder.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=editBuddies"><img border="0" src="usercp/kdmconfig.png" width="80" height="80"></a></font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=statPanel"><b>Deine Stats</a><br>
</b></font><font size="1" face="Verdana">Gibt einen Ãœberblick über deine ForumsStatistiken.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=showPosts"><b>Deine Beiträge</a><br>
</b></font><font face="Verdana" size="1">Mit dieser Option kannst du alle  deine vorhandenen Beiträge anschauen.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=notification"><b>Benachrichtigungen</a><br>
</b></font><font face="Verdana" size="1">Einstellungen für alle Beitrags/Themenbenachrichtigungen.</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=editBuddies"><b>Buddies</a><br>
</b></font><font face="Verdana" size="1">Deine Buddies auf einen Blick. </font></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2">
<a href="', $scripturl, '?action=profile;u=;sa=pmprefs"><img border="0" src="usercp/mail.png" width="80" height="80"></a></font></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=profile;u=;sa=tpshoutbox"><img border="0" src="usercp/messenger.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=search"><img border="0" src="usercp/find.png" width="80" height="80"></a></td>
<td align="center" width="25%" valign="top">
<a href="', $scripturl, '?action=pm;sa=send;u=1"><img border="0" src="usercp/agent.png" width="80" height="80"></a></td>
</tr>
<tr>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=pmprefs"><b>Nachrichten (PM) Einstellungen</a><br>
</b></font><font face="Verdana" size="1">Layout deiner PM-Box und Ignorefunktion für PMs.</font></td>
<td align="center" width="25%" valign="top"><b>
<font face="Verdana" size="2"><a href="', $scripturl, '?action=profile;u=;sa=tpshoutbox">Shouts</a><br>
</font></b><font face="Verdana" size="1">Ein Ãœberblick über alle von dir geschriebenen Nachrichten in der Shotbox. </font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=search"><b>Suche (deaktiviert)</a><br>
</b></font><font face="Verdana" size="1">Hier kannst du nach Beiträgen und Themen in diesem Forum suchen</font></td>
<td align="center" width="25%" valign="top">
<font face="Verdana" size="2"><a href="', $scripturl, '?action=pm;sa=send;u=1"><b>Kontakt</a><br>
</b></font><font face="Verdana" size="1">...zum Webmaster .</font></td>
</tr>
</table>
';
« Last Edit: May 02, 2007, 08:43:24 AM by Lemming »

Tommy

  • Guest
Re: FAQ, Modifikationen, Codeschnipsel
« Reply #5 on: May 02, 2007, 08:41:44 AM »
Artikel/Blockinhalt nur für bestimmte M.Gruppen

Code: [Select]
global $user_info;
if ($context['user']['is_admin'] || count(array_intersect(array(1, 2, 3), $user_info['groups'])) > 0)

1, 2, 3 ersetzen mit den jeweiligen Mitgliedergruppen.
« Last Edit: May 02, 2007, 08:43:35 AM by Lemming »