May 21 2012 23:02:01
Languages
Navigation
Friends & Affiliates
Roadmap
[N] User Profile Wall
[N] Error log like in P...
[N] Submit photo - Subc...
[N] Warnings - who can ...
[N] [edit profile]Save ...
[N] Moving panels with ...
[N] Forum thread deform...
[N] Thumbnails in downl...
[N] [Locale German] New...
[N] Warnings only for a...
Users Online
· Guests Online: 3

· Members Online: 0

· Total Members: 494
· Newest Member: budisantoso
Last Seen Users
· budisantoso15:13:57
· lidaer15:24:29
· Yodix 1 day
· mr-casino 1 day
· dos5 3 days
· Machello93 3 days
· Leonardo_master 3 days
· ezgi 3 days
· xxyy 4 days
· lilin0402 5 days

Login
 Username  Password  
View Thread: Coding in panels
Pimped Fusion - Content Management System » Pimped-Fusion Support & Development » General Questions
Who is here? 1 Guest
 Print Thread
Coding in panels
darren62
I inserted some code in a panel for a list manager I use but it doesn't show properly and wanted to know whether there was a way round it. I also created a custom page but the code appears the same.

Both can be viewed at http://autobetting.co.uk/pf/viewpage.php?page_id=5
 
slaughter
How does your Code look like?
 
darren62
<script language="javascript">
function check_email1276419708(emailString)
{

var mailPattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
var matchArray = emailString.match(mailPattern);
if (emailString.length == 0)
return false;

if (matchArray == null)
{
return false;
}
}

function getCheckedValue1276419708(radioObj)
{
if(radioObj!=undefined)
{
var len = radioObj.length;
for(i=0;i<len;i++)
{
if(radioObj[i].checked)
return radioObj[i].value;
}

}
return 0;
}
function verifyFields1276419708(frm)
{
if (check_email1276419708(frm.email.value)==false)
{
alert('Your Email Address seems incorrect. Please check to make sure that it is a correct Email Address format.'Wink;
frm.email.focus();
return false;
}
if(getCheckedValue1276419708(frm.radiobutton)==0)
{



if (!frm.extra_personal_info1.value)
{
alert('Please provide your Your Name:'Wink;
frm.extra_personal_info1.focus();
return false;
}
}
return true;
}
</script>
<form action="http://autobetting.co.uk/list_manager/subscribe.php?redirect=http%3A%2F%2Fautobetting.co.uk%2Fcms.php%3Fid_cms%3D16" id="category_sub" method="post" name="category_sub" onsubmit="javascript: return verifyFields1276419708(category_suCool">
<br />
Both fields are mandatory<br />
<br />
<input name="redirect" type="hidden" value="http%3A%2F%2Fautobetting.co.uk%2Fcms.php%3Fid_cms%3D16" /><input name="redirect1" type="hidden" value="http%3A%2F%2Fautobetting.co.uk%2Fcms.php%3Fid_cms%3D17" /> Your Name:<br />
<input id="extra_personal_info1" name="extra_personal_info1" style="width: 150px;" type="text" /><br />
<br />
Email Address:<br />
<input name="email" style="width: 150px;" type="text" /><br />
<br />
<input name="cid" type="hidden" value="1" /> <input checked="checked" name="radiobutton" type="radio" value="0" />Subscribe<br />
<br />
<input name="radiobutton" type="radio" value="1" />Unsubscribe<br />
<br />
<input name="Submit2" type="submit" value="Submit !" />&nbsp;</form>
 
slaughter
Take this Code in Panels:



openside("Your Title");
?>
// Your HTML Code here
<?php
closeside();


You can also this functions if you click on the Information Button in Panel administration.


And when I try this, then it is shown correctly. I see on your site a </td> in your source code, which shouldn't be there.
Edited by slaughter on 29-08-2010 20:13
 
Advertising Bot
Posted on 21-05-2012 23:02
Bot Agent

Posts: n^x
Joined: Always

  
darren62
I tried this code and still got the same with the subscribe/unsubscribe buttons above the text boxes.

I have no td's in the code so this must be PF not the code.

Try as I may I just cannot get the embedded code to work either with the original echo code or the php code tags.

What does put the buttons above the text boxes any idea?

Edit:
Sorry....found the td, removed it, and it works now.

Thanks for your time
Edited by darren62 on 29-08-2010 20:55
 
Jump to Forum:
Similar Threads
Thread Forum Replies Last Post
Inactive panels Feature Requests 2 06-03-2012 06:54
Side panels probleme wiht div theme Suspected Bugs and Errors 3 01-03-2012 04:05
Änderung des Benutzer Online Panels Modifikationen 1 27-08-2010 15:28
Share this thread
URL:
BB-Code:
HTML:
AddThis:
Share |
Render time: 0.15 seconds - 93 Queries 994,251 unique visits