PHP Nuke Nederland
 
•   Home  •  Downloads  •  Your Account  •  Forums  •
PHP-Nuke Nederland: Forums

PHP-Nuke Nederland :: View topic - Plaats van banner
 Forum FAQ  •   Search   •  Memberlist  •  Usergroups   •  Register   •    •  Profile  •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.
View previous topic Log in to check your private messages View next topic
Author Message
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Wed 17 Nov 2004 7:05 Reply with quoteBack to top

Ik zou graag de plaats van banners aanpassen.

Nu verschijnt een banner in een regel boven de site.

Ik zou graag de banner omlaag verplaatsen, zodat hij tussen het logo van mijn site en de zoekfunctie komt te staan.

Ik gebruik het SlashOcean thema.

Hoe kan ik dit voor elkaar krijgen ? Smile
View user's profileSend private messageVisit poster's website
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2836

PostPosted: Wed 17 Nov 2004 9:44 Reply with quoteBack to top

Open theme.php in root/themes/SlashOcean/ en vervang de complete function themeheader door het volgende:

[php:1:35a481351f]function themeheader() {
global $slogan, $sitename, $banners, $prefix, $db;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */

if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];

if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];

/* Check if this impression is the last one and print the banner */

if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a> ";
}
}

echo "<body bgcolor=FFFFFF text=000000 link=101070 vlink=101070>
<table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>
<a href=$nukeurl><img src=themes/SlashOcean/images/logo.gif Alt=\"Welcome to $sitename\" border=0></a>
</td>
<td width=100%><center>$showbanners</center></td>
<td align=right width=100%>
<form action=search.html&amp; method=post>
<font class=content><input width=20 size=20 length=20 type=text name=query value=$query>
</td>
<td align=right>  <input type=submit value=\""._SEARCH."\"></td>
</form>";
echo "</td></tr></table><br>";
echo "
<table cellpadding=0 cellspacing=0 border=0 width=99% bgcolor=101070><tr><td>
<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>
<font class=content>$slogan</td></tr></table></td></tr></table>";
$public_msg = public_message();
echo "$public_msg<br>";
echo "<table width=99% align=center cellpadding=0 cellspacing=0 border=0><tr><td valign=top rowspan=15>";

blocks(left);

echo "</td><td>  </td><td valign=top width=100%>";
}[/php:1:35a481351f]


Hierin is ook gelijk te functie zoeken gewijzigd en werkt nu ook.

Succes,


BL
View user's profileSend private messageSend e-mailVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Mon 22 Nov 2004 4:52 Reply with quoteBack to top

Ok heb ik gedaan, maar dan krijg ik de volgende foutmelding:

Code:

Parse error: parse error, unexpected T_STRING in /var/www/html/themes/SlashOcean/theme.php on line 135


Wat nu ? Smile
View user's profileSend private messageVisit poster's website
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2836

PostPosted: Mon 22 Nov 2004 5:42 Reply with quoteBack to top

De fout zit in de BBcode, oftewel de hightlight synstax mod. Die zet een spatie teveel in de volgende code:

[php:1:3382983771] $public _msg = public_message();
echo "$public_msg<br>"; [/php:1:3382983771]

Dat moet zijn:

[php:1:3382983771] $public_msg = public_message();
echo "$public_msg<br>"; [/php:1:3382983771]


BL
View user's profileSend private messageSend e-mailVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Mon 22 Nov 2004 8:33 Reply with quoteBack to top

Bedankt Bluelion alles loopt nu gesmeerd !

Op 1 puntje na, ik heb een site slogan, die staat nu ineens in een witte regel (was eerst transparant), links uitgelijnd (was eerst gecentered) en in een normaal lettertype (was eerst bold).

Ik heb dat ooit zelf aangepast, maar kun je me nog eens aangeven waar en hoe ik dat in de theme.php aan moet passen ?
View user's profileSend private messageVisit poster's website
BlueLion
Administrator
Administrator


Joined: Aug 21, 2004
Posts: 2836

PostPosted: Mon 22 Nov 2004 9:13 Reply with quoteBack to top

Open je style.css in root/themes/jouw-theme/style/ met wordpad en voeg de volgende regel toe:

Code:
.slogan    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}


Open theme.php in root/themes/jouw-theme/ en vind de volgende regel:

Code:
<font class=content>$slogan</td></tr></table></td></tr></table>";


En wijzig dit in:

Code:
<font class=slogan><center>$slogan </center></td></tr></table></td></tr></table>";


BL
View user's profileSend private messageSend e-mailVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Wed 24 Nov 2004 8:42 Reply with quoteBack to top

En weer is mijn dank groot Smile

Is de witte balk achter de slogan trouwens weg te krijgen ?

Zodat de slogan gewoon direct op de achtergrond staat ipv in een witte balk ?

_________________
Never look down on anybody unless you're helping them up. -Jesse Jackson-
View user's profileSend private messageVisit poster's website
nedkelly
Elite Support
Elite Support


Joined: Aug 23, 2004
Posts: 533

PostPosted: Wed 24 Nov 2004 20:03 Reply with quoteBack to top

Code:
.slogan    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}

Volgens mij moet dit lukken als je achter COLOR jou achtergrond kleur invult, dus achter het hekje.
Of je zult de kleur van je table moeten aanpassen.
View user's profileSend private messageVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Wed 24 Nov 2004 22:05 Reply with quoteBack to top

Achtergrond is geen kleur maar een plaatje, dus dat gaat wat moeilijker worden. Smile

_________________
Never look down on anybody unless you're helping them up. -Jesse Jackson-
View user's profileSend private messageVisit poster's website
nedkelly
Elite Support
Elite Support


Joined: Aug 23, 2004
Posts: 533

PostPosted: Thu 25 Nov 2004 4:24 Reply with quoteBack to top

Dus die witte balk zit in het plaatje? Of achter het plaatje?
Achter het plaatje is de background color van de table. Maar ik begrijp dus dat de achtergrond van jou plaatje wit is.
View user's profileSend private messageVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Fri 26 Nov 2004 6:37 Reply with quoteBack to top

Nee de achtergrond van de site is een tiled bitmapje.

Kijk als je wil even op http://www.sgtclog.nl dan snap je precies wat ik bedoel

_________________
Never look down on anybody unless you're helping them up. -Jesse Jackson-
View user's profileSend private messageVisit poster's website
nedkelly
Elite Support
Elite Support


Joined: Aug 23, 2004
Posts: 533

PostPosted: Fri 26 Nov 2004 21:50 Reply with quoteBack to top

Code:
.slogan    {BACKGROUND: none; COLOR: #000000; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}

Probeer eens COLOR: #000000 weg te halen, hier geeft hij namelijk aan dat de tekst op een witte achtergrond geplaatst moet worden.
View user's profileSend private messageVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Sat 27 Nov 2004 2:20 Reply with quoteBack to top

Heb de wijziging doorgevoerd, maar hier staat de witte balk er nog steeds, browsercache geleegd en site opnieuw geladen...zelfde resultaat Smile

_________________
Never look down on anybody unless you're helping them up. -Jesse Jackson-
View user's profileSend private messageVisit poster's website
nedkelly
Elite Support
Elite Support


Joined: Aug 23, 2004
Posts: 533

PostPosted: Sat 27 Nov 2004 15:57 Reply with quoteBack to top

Ik geef nog niet op Laughing
Code:
<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>
<font class=slogan><center>The spot on the web for Dutch and Canadian ex-pats and all who are interested in Canada, Holland and the dutch canadian friendship </center>
</td>
</tr>
</table>

Het gaat er dus om dat de tekst:
Quote:
The spot on the web for Dutch and Canadian ex-pats and all who are interested in Canada, Holland and the dutch canadian friendship
in een wit vlak zit? Als dit namelijk niet het geval is dan heb ik het totaal verkeerd begrepen. Laughing
Ik krijg dit weg door
Code:
<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF>
de bgcolor=FFFFFF weg te halen.
Als het niet om bovenstaande gaat, dan sorry en zal ik mij er verder niet meer bemoeien. Laughing
View user's profileSend private messageVisit poster's website
eschulp
Gevorderd
Gevorderd


Joined: Nov 03, 2004
Posts: 34

PostPosted: Sun 28 Nov 2004 2:50 Reply with quoteBack to top

Schot in de roos nedkelly Wink

Nog 1 vraagje, ik heb na de annpassing van theme.php voor de banner plaats ook ineens de footnote tekst links uitgelijnd staan en met een superklein font, dit kan ik, neem ik aan ook in theme.php aanpassen ?

_________________
Never look down on anybody unless you're helping them up. -Jesse Jackson-
View user's profileSend private messageVisit poster's website
Display posts from previous:      
 Donaties   Adverteren 
Wilt u het forum steunen, dan kunt u nu eenvoudig doneren met PayPal.
This forum is locked: you cannot post, reply to, or edit topics.This topic is locked: you cannot edit posts or make replies.
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Web site powered by PHP-Nuke

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2004-2008 by BlueLion.
SEO enhanced with the Sitemapper script
You can syndicate our news using the file backend.php or ultramode.txt
Powered by PHP Powered by MySQL Apache Webserver Valid robots.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Pagina rendering: 0.11 seconden


[Valid News RSS]

RSS Feeds:
[RSS 2.0 News Feed]
[RSS 2.0 Download Feed]
[RSS 2.0 Forum Feed]
[RSS 2.0 Link Feed]
:: fisubsilver shadow phpbb2 style by Daz :: PHP-Nuke theme by BlueLion ::