Seite 1 von 1

Spalte für Werbung rechts

Verfasst: 30.08.2008 16:56
von corun
Ich suche noch eine Möglichkeit rechts am Rand eine Art Spalte oder Rahmen im Forum einzubinden der es einem ermöglicht dort Werbung
einzublenden. Die Advertisement Mod hat dazu leider keine Konfigurationsmöglichkeiten.

Wisst ihr wie sich sowas recht unkompliziert realisieren ließe ?

Verfasst: 31.08.2008 02:56
von porfavor
Meinst du in einem geschriebenen Beitrag?

Versuche mal das:
Öffne die viewtopic_body.html im template ordner deines Styles.

Suche nach folgendem:

Code: Alles auswählen

			<dl class="postprofile" id="profile{postrow.POST_ID}">
			<dt>
				<!-- IF postrow.POSTER_AVATAR -->
                   <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><!-- ELSE --><img src="./images/avatars/gallery/no_avitar/index.php" width="80" height="80" alt="" />
				<!-- ENDIF --><br />
				<!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
			</dt>

			<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->

		<dd>&nbsp;</dd>

		<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->
		<!-- IF postrow.POSTER_JOINED --><dd><strong>{L_JOINED}:</strong> {postrow.POSTER_JOINED}</dd><!-- ENDIF -->
		<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
		<!-- IF postrow.POSTER_GENDER --><dd><strong>{L_GENDER}:</strong> {postrow.POSTER_GENDER_IMG}</dd><!-- ENDIF -->

		<!-- IF postrow.S_PROFILE_FIELD1 -->
			<!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
			<dd><strong>{postrow.PROFILE_FIELD1_NAME}:</strong> {postrow.PROFILE_FIELD1_VALUE}</dd>
		<!-- ENDIF -->

		<!-- BEGIN custom_fields -->
			<dd><strong>{postrow.custom_fields.PROFILE_FIELD_NAME}:</strong> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
		<!-- END custom_fields -->

		<!-- IF not S_IS_BOT -->
		<!-- IF postrow.U_PM or postrow.U_EMAIL or postrow.U_WWW or postrow.U_MSN or postrow.U_ICQ or postrow.U_YIM or postrow.U_AIM -->
			<dd>
				<ul class="profile-icons">
					<!-- IF postrow.U_PM --><li class="pm-icon"><a href="{postrow.U_PM}" title="{L_PRIVATE_MESSAGE}"><span>{L_PRIVATE_MESSAGE}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_EMAIL --><li class="email-icon"><a href="{postrow.U_EMAIL}" title="{L_EMAIL}"><span>{L_EMAIL}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_WWW --><li class="web-icon"><a href="{postrow.U_WWW}" title="{L_VISIT_WEBSITE}: {postrow.U_WWW}"><span>{L_WEBSITE}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_MSN --><li class="msnm-icon"><a href="{postrow.U_MSN}" onclick="popup(this.href, 550, 320); return false;" title="{L_MSNM}"><span>{L_MSNM}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_ICQ --><li class="icq-icon"><a href="{postrow.U_ICQ}" onclick="popup(this.href, 550, 320); return false;" title="{L_ICQ}"><span>{L_ICQ}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_YIM --><li class="yahoo-icon"><a href="{postrow.U_YIM}" onclick="popup(this.href, 780, 550); return false;" title="{L_YIM}"><span>{L_YIM}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_AIM --><li class="aim-icon"><a href="{postrow.U_AIM}" onclick="popup(this.href, 550, 320); return false;" title="{L_AIM}"><span>{L_AIM}</span></a></li><!-- ENDIF -->
					<!-- IF postrow.U_JABBER --><li class="jabber-icon"><a href="{postrow.U_JABBER}" onclick="popup(this.href, 550, 320); return false;" title="{L_JABBER}"><span>{L_JABBER}</span></a></li><!-- ENDIF -->
                    <!-- IF postrow.U_GALLERY --><li class="gallery-icon"><a href="{postrow.U_GALLERY}" title="{L_PERSONAL_ALBUM}"><span>{L_PERSONAL_ALBUM}</span></a></li><!-- ENDIF -->
				</ul>
			</dd>
		<!-- ENDIF -->
		<!-- ENDIF -->

Füge danach mal ein:

Code: Alles auswählen

<dl>
<dd>
Dein Werbungscode
</dd>
</dl>
Ich weiß halt nicht wie das rauskommt. Evtl. musst du Größenangaben für dl und dd setzen.

.

Verfasst: 31.08.2008 08:04
von corun
Am Besten wäre es, wenn sich das Feld in der Forenübersicht und den Unterforen einblendet - so wie hier z.B.: phpBB.de Foren-Übersicht -> phpBB 3.0: Mod Suche/Anfragen

Den Code werde ich gleich mal ausprobieren "erstmal frühstücken gehe..... :cookie: "

Verfasst: 31.08.2008 15:40
von porfavor
In dem Fall ist deine Datei die index_body.html

In dem Fall suche mal nach

Code: Alles auswählen

<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>
und füge danach ein:

Code: Alles auswählen

<td valign="top" style=" width:300;" id="right">
Dein Code
</td>

Oder auch

Code: Alles auswählen

<td valign="top" style=" width:300;" id="right">
<div class"inner">
Dein Code
</div>
</td>
width musst du halt anpassen

Verfasst: 16.09.2008 13:07
von macmaniacs
OK, also wenn ich das hier (ich will meinem Forum nämlich ebenfalls eine Werbespalte rechts verpassen) richtig verstehe, macht der Code eine weitere Spalte mit Breite 300px auf, in die ich dann nach belieben den Werbungscode einbauen kann.

Meine Forum ist hier: http://forum.macmaniacs.at

Könnt ihr mir, bevor ich am Code zu werken beginne, sagen, ob das damit auch in diesem Layout funktionieren wird?

Verfasst: 18.09.2008 21:45
von porfavor
das weiß ich nicht. Warum probierst du es nicht einfach bei dem Style aus?

Verfasst: 19.09.2008 09:38
von macmaniacs
Tja, ich hatte es probiert, es hat aber leider nicht funktioniert... keinerlei Verànderung im Forum, egal, an welcher Stelle ich den Code eingebaut hatte :-(

Verfasst: 19.09.2008 10:19
von nickvergessen
Hast du danach auch den Cache vom Forum gelöscht?

Verfasst: 19.09.2008 19:56
von macmaniacs
hmmm, nein, ich denke nicht. Ohne das lòschen funktionierts nicht?

Verfasst: 19.09.2008 23:23
von Metzle
macmaniacs hat geschrieben:hmmm, nein, ich denke nicht. Ohne das lòschen funktionierts nicht?
Hallo,

try and see ;)