Author |
Message |
gstrategic
Hangin' Around
![](modules/Forums/images/avatars/blank.gif)
Joined: Aug 15, 2005
Posts: 46
|
Posted:
Fri Aug 26, 2005 6:41 pm |
|
So I found out that an article has home text, body text and note text and they are sectioned out like that in the php file.
Has anyone tried to insert an Adsense section right after the home text section? Do you know what I'm talking about?
Thanks, |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
Site Admin/Owner
![](modules/Forums/images/avatars/45030c033f18773153cd2.gif)
Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sat Aug 27, 2005 5:58 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sat Aug 27, 2005 12:39 pm |
|
I want to insert an Adsense module into an article either at top or middle.
The news submission has 3 parts: home text, extended text and note. So when someone clicks on Readmore all three parts brought together to assembly a complete article (the News module). Is there a way to insert an adsense module right after the home text part?
Thanks, |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 4:54 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 7:23 am |
|
yes! how did you get that in there like that? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 8:02 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 11:15 pm |
|
Quote: | foreach ($_GET as $sec_key => $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue)) ||
(eregi("forum_admin", $sec_key)) ||
(eregi("inside_mod", $sec_key))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
|
I didn't find the code section like you suggested, and found this instead. I tried at the "if (!is_admin($admin)) {" and the closing tag "}". Reload and the whole page got blank. I put back the original mail file.
I insert the adsense code into the Home box and it just disappeared. I didn't get any error message. |
Last edited by gstrategic on Sun Aug 28, 2005 11:29 pm; edited 1 time in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 11:20 pm |
|
That's the correct section and that's the correct wrapper code. Carefully try it again. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 11:39 pm |
|
It has not worked. I don't know if you notice how the code in your fix isn't the same as mine. however you did mention "similarity". No, it didn't work. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 11:47 pm |
|
The code similarity or not is not the issue. I use that EXACT code in my mainfile as do many, many others. What version of nuke are you using? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Aug 28, 2005 11:53 pm |
|
PHP Nuke 7.7
I added this
"if (!is_admin($admin)) {"
at the beginning and one close tage "}" at the end. It didn't work. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Raven
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 29, 2005 12:00 am |
|
So you are saying that this doesn't work.Code:if (!is_admin($admin)) {
foreach ($_GET as $sec_key => $secvalue) {
if ((eregi("<[^>]*script*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*object*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*iframe*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*applet*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*meta*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*style*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*form*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*img*\"?[^>]*>", $secvalue)) ||
(eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) ||
(eregi("\([^>]*\"?[^)]*\)", $secvalue)) ||
(eregi("\"", $secvalue)) ||
(eregi("forum_admin", $sec_key)) ||
(eregi("inside_mod", $sec_key))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
foreach ($_POST as $secvalue) {
if ((eregi("<[^>]*onmouseover*\"?[^>]*>", $secvalue)) || (eregi("<[^>]script*\"?[^>]*>", $secvalue)) || (eregi("<[^>]style*\"?[^>]*>", $secvalue))) {
die ("<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
}
}
}
|
|
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 29, 2005 12:12 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
64bitguy
The Mouse Is Extension Of Arm
![](modules/Forums/images/avatars/183ecd6a404a3683445de.gif)
Joined: Mar 06, 2004
Posts: 1164
|
Posted:
Mon Aug 29, 2005 12:52 pm |
|
I realize that Raven is helping you with this, but in reading it, I had a few questions.
Quote: | I insert the adsense code into the Home box and it just disappeared. |
What disappeared? The entire homepage? Or just one article? Or what?
Next, were you actually getting the "html tags" error message on your screen when you first tried this without the mods suggested by Raven?
Next, what is your "Patched" version?
Finally, is there anything inside your "error_log" file?
Thanks! |
_________________ Steph Benoit
100% Section 508 and W3C HTML5 and CSS Compliant (Truly) Code, because I love compliance. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
gstrategic
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Aug 29, 2005 4:46 pm |
|
I inserted the code in the HOME box two ways: direct input and input in the HTML box. When I do it directly the code shows up as text, and when I entered into the HTML box, the code disappeared the next time I open the HTML box.
I do not get the "HTML tages" error message.
I do not know what my "patched" version is and where to look for that.
I have not checked my "error_log" file. (I'll do that next)
Thank you. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|