|
Profile
Personal Photo
Rating
Options
Personal Statement
therockers doesn't have a personal statement currently.
Personal Info
therockers
Newbie
Age Unknown
Gender Not Set
Location Unknown
Birthday Unknown
Interests
No Information
Statistics
Joined: 21-July 12
Profile Views: 161*
Last Seen: 26th April 2013 - 12:56 PM
Local Time: May 20 2013, 12:08 PM
3 posts (0 per day)
Contact Information
No Information
No Information
No Information
No Information
* Profile views updated each hour
|
Topics
Posts
Comments
Friends
My Content
18 Nov 2012
Hello, I have a problem with spam bots spamming the comments, can anyone help me remove or ban all the spam bots.
[SOLVED] Found my solution from this article. http://cutephp.com/forum/index.php?showtop...7&st=0&
21 Jul 2012
So I've googled and looked for codes to integrate Facebook like button into cutenews, there's really no way yet until now.
You literally have to put his on the php file that cutenews is integrated into. It took me a while to figure out how to do this, but I think it actually works. Don't put it in Deafult.tpl because it won't work. You rather put it in your header file of your php file. CODE <div class="fb-like" data-href="http://<? echo $_SERVER['SERVER_NAME']; ?><? echo $_SERVER['REQUEST_URI']; ?>" data-send="false" data-layout="button_count" data-width="120" data-show-faces="true"></div> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=APP_ID_HERE"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> Using the default facebook like options, the change is only the URL, sometimes when you try to embed Facebook like button onto the Default.tpl, it'll only go to the http://yoursite.com/news.php?subaction=showfull. So to do this, we use the default like option and put in CODE <? echo $_SERVER['SERVER_NAME']; ?><? echo $_SERVER['REQUEST_URI']; ?> .CODE <? echo $_SERVER['SERVER_NAME']; ?> for the website URL and CODE <? echo $_SERVER['REQUEST_URI']; ?> for if you have the php file like http://yoursite.com/news?subaction=showfull instead and also, it's a better way than CODE <? echo $_SERVER['PHP_SELF']; ?> .NOTE: Don't use these PHP codes on Default.tpl for tpl files cannot read PHP functions. |
Comments
Other users have left no comments for therockers.
Friends
There are no friends to display.
|
|
Lo-Fi Version | Time is now: 20th May 2013 - 12:08 PM |