pansenp
"myXOOPs"-Neuling
Gepostet am:20.01.2010 10:11
LupusC schrieb:
1. Hast du in den Optionen die Anzahl der zufälligen Videos auf 2 gestellt?
LupusC schrieb:
2. Sind genug Videos published, nicht abgelaufen und als online gesetzt?
LupusC schrieb:
3. Editiere mal bitte xoopstube_top.php und ersetze in der function b_xoopstube_random folgende Zeilenunset( $_block_check_array );
return $block;
mitprint "<!-- ";
print_r($videorandom);
print " -->";
unset( $_block_check_array );
return $block;
LupusC schrieb:
4. Nach dem zuletzt von dir geposteten Code muss ich mal annehmen, dass nur ein Video in $videorandom ist, denn 2 idente foreach schleifen bringen nunmal ein identes Ergebnis.
LupusC schrieb:
5. In zwei nebeneinanderliegenden Spalten was Ausgeben ist mit den smarty Templates eine kleine Herausforderung. Ich hab mal sowas für einen xt:Commerce Shop realisiert. Ich habs nicht ausprobiert, aber von smarty her dürfte es keine Probleme geben. Was xoops mit dem Template anstellt kann ich dir aber nicht sagen.
This page cannot be displayed due to an internal error.
You can provide the following information to the administrators of this site to help them solve the problem:
Error: Smarty error: [in db:xoopstube_block_random.html line 2]: syntax error: invalid attribute name: 'cols/' (Smarty_Compiler.class.php, line 1533)
LupusC schrieb:
Falls das nicht klappen sollte, und du nur 2 Spalten haben willst, dann muss man ne hartcodierte Version in Angriff nehmen (grusel). Untenstehend der Code (ebenfalls nicht getestet)
<table cellspacing="1" align="center" border="0">
<tr>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<{foreach item=videorandom from=$block.random}>
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><small><{$videorandom.title}></small></a>
<br />
<small>(<{$videorandom.date}>)</small>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><{$videorandom.videothumb}></a>
<{/foreach}>
</td>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<{foreach item=videorandom from=$block.random}>
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><small><{$videorandom.title}></small></a>
<br />
<small>(<{$videorandom.date}>)</small>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><{$videorandom.videothumb}></a>
<{/foreach}>
</td>
</tr>
</table>
<table cellspacing="1" align="center" border="0">
<{foreach item=videorandom from=$block.random}>
<tr>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><small><{$videorandom.title}></small></a>
<br />
<small>(<{$videorandom.date}>)</small>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><{$videorandom.videothumb}></a>
</td>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><small><{$videorandom.title}></small></a>
<br />
<small>(<{$videorandom.date}>)</small>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><{$videorandom.videothumb}></a>
</td>
</tr>
<{/foreach}>
</table>
<table cellspacing="1" align="center" border="0">
<{foreach item=videorandom from=$block.random}>
<tr>
<td align="center" class="even" style="padding: 4px;vertical-align: top;">
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><small><{$videorandom.title}></small></a>
<br />
<small>(<{$videorandom.date}>)</small>
<br />
<a href="<{$xoops_url}>/modules/<{$videorandom.dirname}>/singlevideo.php?cid=<{$videorandom.cid}>&lid=<{$videorandom.id}>"><{$videorandom.videothumb}></a>
</td>
</tr>
<{/foreach}>
</table>
whitesox schrieb:
ps: habe mittlerweile rausgefunden wie man die editoren die nicht gebraucht werden gelöscht werden können
im verzeichnis:
/xoopsroot/Frameworks/xoops22/class/xoopseditor
dort die verzeichnisse löschen (die namen der editoren sollten klar erkennbar sein), die nicht gebraucht werden. das wars
ich habe die 2 gelöschten verzeichnisse erstmal woanders hingesichert.
Forum | Thema | Antworten | Views | Letzter Beitrag |
---|---|---|---|---|
OffOffTopic | [Wichtig] Übernahme myXOOPS | 0 | 325 | 11.12.2023 18:57 alfred |
Die Installation und Administration von XOOPS 2.5.X | [Offen] Upgrade 2.5.11 | 3 | 1989 | 07.05.2023 07:03 Goffy |