Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Adding Adsense To Post
Avatar
Yap Pau Seng
Member
Free Members
sp_UserOfflineSmall Offline
Jun 15, 2012 - 4:47 am

Hi,

will anyone know on how to add adsense code in all posts (position to be located below every new topic or reply)

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 15, 2012 - 6:00 am

This thread might server as a useful introduction to this subject - there are many other threads as well...
https://simple-press.com/suppo.....ense-code/

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yap Pau Seng
Member
Free Members
sp_UserOfflineSmall Offline
Jun 18, 2012 - 8:58 am

noted thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 18, 2012 - 9:30 am

We can advise if you get stuck.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yap Pau Seng
Member
Free Members
sp_UserOfflineSmall Offline
Jun 18, 2012 - 11:36 am

im stuck..

can i do this way ?

under spTopicView.php >

sp_SectionEnd('', 'topicView');

sp_SectionEnd('', 'body');

paste my adsense code here.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 18, 2012 - 12:05 pm

You can. In what way are you stuck?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yap Pau Seng
Member
Free Members
sp_UserOfflineSmall Offline
Jun 18, 2012 - 12:35 pm

it gives me this error Parse error: syntax error, unexpected '<' in /problem-with-post-edit-buttonome/mjhub/public_html/sportsforlife.sg/wp-content/sp-resources/forum-themes/default/templates/spTopicView.php on line 197

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 18, 2012 - 2:40 pm

That means your php is badly formed.
Why don't you paste your code here and we can take a look. Best to put it in a code block else some can get stripped.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yap Pau Seng
Member
Free Members
sp_UserOfflineSmall Offline
Jun 22, 2012 - 5:45 am

Under this Section

under spTopicView.php >

                # Start the 'pagelinks' section
                # ----------------------------------------------------------------------
                 }
                 }

                 }
                 }

                # Start the 'editor' section
                # ----------------------------------------------------------------------
                }
                }
        sp_SectionEnd('', 'topicView');

<script type="text/javascript"><!-- google Ads
}
}
}
</script>

    sp_SectionEnd('', 'body');
     }
     }
     }
    sp_SectionEnd('', 'foot');
?>

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jun 22, 2012 - 6:35 am

As I said you wil need to put this into a code block.

Paste the code. Carefully select it (JUST the code - no more). Click on the toolbar code button - far right. Select php.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626