Topic RSS
|
I'm hoping someone can help me with this as I am sure it is easy and I {function sf_hook_first_post($forumid, $topicid) $x = ' '; return $x; } Warning: session_start()[function.session-start]: Cannot send session And this is the code in the file I am uploading. {function sf_hook_first_post($forumid, $topicid) $x = '<script type="text/javascript"><!– google_ad_client = "pub-XXXXXXXXXXXX"; /* 234x60, created 9/8/10 */ google_ad_slot = "1443406738"; google_ad_width = 234; google_ad_height = 60; //–> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>'; return $x; } Does any of that even make sense to anyone? |
probably need some clarification, but as the wiki help on hooks says, you rename the hook .txt file .php and leave it in the same location… or at least it has to be in the location specified in forum – configuration – storage locations… sounds like you moved it the plugins folder which make wp treat it as a standalone plugin…
I am loading it in the same folder the txt file was in. simple-forum_forum_hooks.
I thought it might be the wp-responder that was causing problems since this line shows up
- home/content/61/6669961/html/wp-content/plugins/wp-responder-email-autoresponder-and-newsletter-plugin/wpresponder.php on line 269
so I deavtivated it and that line went away but the hook still showed up at the top of the page with the ad displaying.
Does the code I posted look correct?
is this a typo
{function sf_hook_first_post($forumid, $topicid)
shoud be
function sf_hook_first_post($forumid, $topicid)
{
Most Users Ever Online: 444
Currently Online: Yellow Swordfish, Conrad_Farlow, lisalew, Jason Clark, Superfast
51 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
-Radio-: 1251
Lee H: 606
Luffer: 535
Conrad_Farlow: 501
jim: 478
neon: 263
ovizii: 240
Tal: 240
Member Stats:
Guest Posters: 2624
Members: 7354
Moderators: 1
Admins: 2
Forum Stats:
Groups: 5
Forums: 16
Topics: 10877
Posts: 79454
Newest Members: ahcreate, eatonrabbit, indifrendz.com, Superfast, Jason Clark, LisaGergets, williambennettiv, scitexnz, Brad Holland, BlueDagger
Moderators: Brandon C (162)
Administrators: Yellow Swordfish (22180), Mr Papa (23688)
Log In
Register
Home
Add Reply
Add Topic
Offline
Quote




Visit
Online
Privacy Policy



