Google+

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Banner Ads...
#1
Tot o pagină pentru Page Manager... Afişează o serie de bannere cu siteul tău pe care un user le poate pune pe saitul lui pentru publicitate!

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
//Acest cod a fost realizat de Mihu special pentru HSC!
//Data : 8 septembrie 2010
global $headerinclude, $header, $theme, $footer, $lang;
$script = "<script type=\"text/javascript\">
function aratacod(legatura) 
{
   document.getElementById('script_text').innerHTML = '<textarea readonly=\"true\" rows=\"2\" cols=\"169\"><!-- HOMESOFTCENTER : Coded by Mihu at homesoftcenter.com --><a target=\"_blank\" href=\"http://homesoftcenter.com/forum\"><img src=\"'+legatura+'\" border=\"0\"/></a><!-- HOMESOFTCENTER : Coded by Mihu at homesoftcenter.com --></textarea>';
}
</script>";
//Template
$template = '<html>
<head>
<title>'.$pages['name'].'</title>
{$headerinclude}
{$script}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr><td class="thead"><strong>Bannere HSC</strong></td></tr>
<tr>
<td>
<table width="100%">
  <tr>
  <td class="trow2" align="center" id="script_text"><strong>Pentru a se afişa codul bannerului respectiv te rugăm să dai click pe o imagine de mai jos!</strong></td>
  </tr>
  <tr>
  <td class="tcat">89x31 pixeli</td>
  </tr>
 <tr>
 <td align="center">
<img src="http://homesoftcenter.com/images/hsc_1.png" alt="HSC PNG 1" onclick="aratacod(\'http://homesoftcenter.com/images/hsc_1.png\');" style="cursor: pointer;"/>
<img src="http://homesoftcenter.com/images/hsc_1.gif" alt="HSC GIF 1" onclick="aratacod(\'http://homesoftcenter.com/images/hsc_1.gif\');" style="cursor: pointer;"/>
<img src="http://homesoftcenter.com/images/hsc_2.gif" alt="HSC GIF 2" onclick="aratacod(\'http://homesoftcenter.com/images/hsc_2.gif\');" style="cursor: pointer;"/>
<img src="http://homesoftcenter.com/images/hsc_3.gif" alt="HSC GIF 3" onclick="aratacod(\'http://homesoftcenter.com/images/hsc_3.gif\');" style="cursor: pointer;"/>
 </td>
 </tr>
  <tr>
  <td class="tcat">270x130 pixeli</td>
  </tr>
 <tr>
 <td align="center">
<img src="http://homesoftcenter.com/images/hsc_5.png" alt="HSC PNG 5" onclick="aratacod(\'http://homesoftcenter.com/images/hsc_5.png\');" style="cursor: pointer;"/>
 </td>
 </tr>
<tr>
<td style="background-color: rgb(232, 232, 232);"><b>NOTĂ</b></td>
</tr>
<tr>
<td class="tfoot">Imaginile din cadrul acestei secţiuni de bannere au fost realizate de <a href="http://homesoftcenter.com/forum/user-16.html" target="_blank"><b>Adi</b></a>. Îi mulţumim pentru munca depusă! De asemenea acest script a fost codat de <a href="http://homesoftcenter.com/forum/user-1.html" target="_blank"><b>Mihu</b></a>.</td>
</tr>
</table>
</td>
</tr>
</table>
{$footer}
</body>
</html>';
$template = str_replace("\'", "'", addslashes($template));
add_breadcrumb($pages['name']);
eval("\$pagina =\"".$template."\";");
output_page($pagina);
?>

Numai bine, Mihu.

Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
Reply
#2
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/glbzoner/domains/glbzone.ro/public_html/forum/inc/plugins/pagemanager.php(794) : eval()'d code on line 21

imi da eroarea asta
Reply
#3
(01-16-2011, 08:41 PM)dEnIs Wrote: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/glbzoner/domains/glbzone.ro/public_html/forum/inc/plugins/pagemanager.php(794) : eval()'d code on line 21

imi da eroarea asta
Chestia asta ar trebui totuşi să meargă... În fine o mă uit de miercuri încolo pe cod şi să văd unde ar fi problema...
PS : Sunt în sesiune şi mâine am examen, de aceea nu pot mai devreme...
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
Reply
#4
Problema s-ar putea sa apara atunci cand copiezi codul asta direct de aici de pe forum cand ii dai paste la tine in page manager si ii dai save, spatiile goale se transforma in &nbsp; ( cel putin asta spune si eroarea T_ENCAPSED_AND_WHITESPACE ) ceea ce nu da prea bine intre tag-uri PHP, de aceea uite ti-am atasat eu aici un fisier de unde poti copia codul normal si apoi sa ii dai paste la tine in page manager.

Ar trebui sa mearga fara probleme, cel putin mie asa imi merge, mai uitati-va si voi ce se intampla dupa ce copiati un lucru dintr-o parte in alta nu doar il copiati si va asteptati sa mearga 100%.

Bafta !


Attached Files
.php   page.php (Size: 2.71 KB / Downloads: 3)
Reply
#5
nu merge aceias eroare am facut asa cum ai zis si tot aja imi zice
Reply
#6
Atunci inseamna ca nu ai instalat bine page manager-ul sau vre-un alt plugin intra in conflict cu el, pentru ca la mine merge pagina de mai sus. Asteptam sa vedem ce zice Mihu.
Reply
#7
Descarcă fişierul ataşat, îi dai Extract şi apoi la fişierul xml îi dai Import din Page Manager!
Nu uita să ştergi pagina cu eroarea...
Dacă mai apar probleme mă poţi contacta, îmi spui siteul, un cont de admin prin PM şi îţi rezolv problema... După care dacă e ceva important pun soluţia pe forum.
Mulţumesc mult!


Attached Files
.zip   ads.zip (Size: 2.15 KB / Downloads: 7)
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
Reply
#8
De cand cautam acest plugin. Multumesc Mihu.
Reply
#9
(01-18-2011, 04:58 PM)Kitikru Wrote: De cand cautam acest plugin. Multumesc Mihu.
Nu e chiar un plugin...
Oricum cu placere!
Users : collective term for those who use computers. Users are divided into three types : novice, intermediate and expert.
Novice users : people who are afraid that simply pressing a key might break their computer.
Intermediate users : people who don`t know how to fix their computer after they`ve just pressed a key that broke it.
Expert users : people who break other people`s computers.
Reply
#10
imi da eroarea asta

Fatal error: Call to undefined function add_breadcrumb() in C:\xampp\htdocs\page.php on line 61

de la ce este ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)