Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Yuna Scatari Edition (YSE)
Reply
  #1  
Old 14th June 2010, 09:48
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default Show/Hide News Don't Work
Hello again BL users! I have pretty small problem but I can't solve it. I don't use block system and I have news in my index.php with "Show/Hide" buttons but they don't work. My friend has got same source, only few files are different but this mod works for him. Here's my index.php:
[code]<?
require "include/bittorrent.php";
dbconn(false);
loggedinorreturn();

if ($_SERVER["REQUEST_METHOD"] == "POST")
{
$choice = $_POST["choice"];
if ($CURUSER && $choice != "" && $choice < 256 && $choice == floor($choice))
{
$res = mysql_query("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_assoc($res) or die("Nav jautājuma");
$pollid = $arr["id"];
$userid = $CURUSER["id"];
$res = mysql_query("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or sqlerr(__FILE__, __LINE__);
$arr = mysql_fetch_assoc($res);
if ($arr) die("
Attached Thumbnails
screen.png  
Reply With Quote
  #2  
Old 14th June 2010, 11:36
danbank danbank is offline
Member
 
Join Date: Apr 2010
P2P
Posts: 13
Default
Have you remembered to add this in headeren
PHP Code:
<script type='text/javascript' src='scripts/java_klappe.js'></script> 
__________________
You think you know me? Well, find out, ask me
Reply With Quote
  #3  
Old 14th June 2010, 12:18
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
I had it but i had "ja/java_klappe.js" but I needed "js/java_klappe.js"

My fault!
Reply With Quote
Reply

Tags
news , show or hide , work

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show/Hide Sample in details.php problem lovebeer TBDev 2 7th March 2010 21:21
PM does not work torrentfreak Torrent Strike 1 20th January 2010 21:03
Hide profile PuterDude Torrent Strike 6 6th October 2008 15:58
the [img][/img] tag doesn't work? roland1000 TBDev 4 23rd July 2008 22:43



All times are GMT +2. The time now is 18:33. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.