<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="https://www.webmastersite.net/forums/templates/bootstrap/rss.css" ?>
<rss version="2.0"
 xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:media="http://search.yahoo.com/mrss/"
 xmlns:atom="http://www.w3.org/2005/Atom"
 xmlns:georss="http://www.georss.org/georss"> 
<channel>
<title>WebmasterSite.net</title>
<link>https://www.webmastersite.net/forums</link>
<description></description>
<language>en-us</language>
<atom:link href="https://www.webmastersite.net/forums/rssfeed.php?thecondition=ownerid%3D1551" rel="self" type="application/rss+xml" />

<item>
<title>MEMBERTRADERRATING and trader.php</title>
<description><![CDATA[Submitted a link to fresh 3.3.18 install.<br /><br />Clicked on details for the link from the category.<br /><br /><div class=&quot;quote&quot;><br />Submitter&#039;s Trader Rating: MEMBERTRADERRATING}<br /></div><br /><br />Member variable is undefined.  The field is linked to a script called trader.php which does not exist in my installation.]]></description>
<link>https://www.webmastersite.net/forums/threads/membertraderrating-and-traderphp-6507.html</link>
<pubDate>Mon, 29 May 2006 06:49:23 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/6507/</guid>
<content:encoded><![CDATA[Submitted a link to fresh 3.3.18 install.<br /><br />Clicked on details for the link from the category.<br /><br /><div class="quote"><br />Submitter's Trader Rating: &#123;MEMBERTRADERRATING}<br /></div><br /><br />Member variable is undefined.  The field is linked to a script called trader.php which does not exist in my installation.]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/membertraderrating-and-traderphp-6507.html</comments>   
</item>

<item>
<title>Error on Preview Submission </title>
<description><![CDATA[In Switches, turn WSNCodes off.

Suggest a link, and hit the Preview Submission button...

Error: Fatal error: Call to undefined function: dowsncodes() in /home/site/public_html/suggest.php on line 708

URL: suggest.php?action=addlink&amp;filled=1]]></description>
<link>https://www.webmastersite.net/forums/threads/error-on-preview-submission-6506.html</link>
<pubDate>Mon, 29 May 2006 06:43:41 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/6506/</guid>
<content:encoded><![CDATA[In Switches, turn WSNCodes off.

Suggest a link, and hit the Preview Submission button...

Error: Fatal error: Call to undefined function: dowsncodes() in /home/site/public_html/suggest.php on line 708

URL: suggest.php?action=addlink&filled=1]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/error-on-preview-submission-6506.html</comments>   
</item>

<item>
<title>Custom Field Replacement Issue</title>
<description><![CDATA[Hello again,

Appreciate any help or ideas on this one...

I&#039;ve got a WSN installation (3.12) in which I&#039;ve added some custom integer member fields.  Everything works great with the conditional template stuff in the 3.12 install and everything is happy.

Now I&#039;m trying to emulate this same setup in a 3.15 install (on different server).  The same member fields have been added and used in the templates in the same way, but I&#039;m getting an eval error resulting from failed template variable replacement.

The first interesting area looks like this in the template (edit profile)...

<pre class=&quot;code&quot;>
IF MEMBERPENDINGLINKS} is 0
IF MEMBERLINKS} is 0
IF MEMBERCREDITS} is 0
etc.
</pre>

In 3.15 I&#039;m getting this result...

<pre class=&quot;code&quot;>
?php if (&quot;&quot; == 0)  ?
?php if (&quot;&quot; == 0)  ?
?php if (0 == 0)  ?
</pre>

I don&#039;t know why these ints are replaced differently and I don&#039;t know why the quotes are in there, these are all integer fields. These fields were added as integer (and this has been verified via phpMyAdmin).

The second area uses the same fields but gets yet another different (invalid) result...

<pre class=&quot;code&quot;>
IF MEMBERPENDINGLINKS} is greater than 0 or MEMBERLINKS} is greater than 0 or MEMBERCREDITS} is greater than 0
</pre>

This results in...

<pre class=&quot;code&quot;>
?php if (  0 ||   0 || 0  0)  ?
</pre>

Which is obviously fatal to the process, resulting in this error...

<pre class=&quot;code&quot;>
Parse error: syntax error, unexpected &#039;&#039; in /home/sky/public_html/commonfuncs.php(349) : eval()&#039;d code on line 194
</pre>

I&#039;ve tried taking the conditionals.php from 3.12 and moving it to the 3.15 install, that seemed to make things worse.

I&#039;ve compared the phpMyAdmin structure for the member tables and they are identical on both installations.  I&#039;ve tried making the DB fields for the member variables to be &quot;Not NULL&quot; and defaulted to &quot;0&quot;, but that didn&#039;t help either, so I put it back like the WSN admin panel created them.

I&#039;ve also tried changing the template conditional syntax, but no luck.

Any ideas?

]]></description>
<link>https://www.webmastersite.net/forums/threads/custom-field-replacement-issue-6475.html</link>
<pubDate>Sun, 21 May 2006 22:49:26 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/6475/</guid>
<content:encoded><![CDATA[Hello again,

Appreciate any help or ideas on this one...

I've got a WSN installation (3.12) in which I've added some custom integer member fields.  Everything works great with the conditional template stuff in the 3.12 install and everything is happy.

Now I'm trying to emulate this same setup in a 3.15 install (on different server).  The same member fields have been added and used in the templates in the same way, but I'm getting an eval error resulting from failed template variable replacement.

The first interesting area looks like this in the template (edit profile)...

<pre class="code">
&#60;IF &#123;MEMBERPENDINGLINKS} is 0&#62;
&#60;IF &#123;MEMBERLINKS} is 0&#62;
&#60;IF &#123;MEMBERCREDITS} is 0&#62;
etc.
</pre>

In 3.15 I'm getting this result...

<pre class="code">
&#60;?php if ("" == 0) &#123; ?&#62;
&#60;?php if ("" == 0) &#123; ?&#62;
&#60;?php if (0 == 0) &#123; ?&#62;
</pre>

I don't know why these ints are replaced differently and I don't know why the quotes are in there, these are all integer fields. These fields were added as integer (and this has been verified via phpMyAdmin).

The second area uses the same fields but gets yet another different (invalid) result...

<pre class="code">
&#60;IF &#123;MEMBERPENDINGLINKS} is greater than 0 or &#123;MEMBERLINKS} is greater than 0 or &#123;MEMBERCREDITS} is greater than 0&#62;
</pre>

This results in...

<pre class="code">
&#60;?php if ( &#62; 0 ||  &#62; 0 || 0 &#62; 0) &#123; ?&#62;
</pre>

Which is obviously fatal to the process, resulting in this error...

<pre class="code">
Parse error: syntax error, unexpected '&#62;' in /home/sky/public_html/commonfuncs.php(349) : eval()'d code on line 194
</pre>

I've tried taking the conditionals.php from 3.12 and moving it to the 3.15 install, that seemed to make things worse.

I've compared the phpMyAdmin structure for the member tables and they are identical on both installations.  I've tried making the DB fields for the member variables to be "Not NULL" and defaulted to "0", but that didn't help either, so I put it back like the WSN admin panel created them.

I've also tried changing the template conditional syntax, but no luck.

Any ideas?

]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/custom-field-replacement-issue-6475.html</comments>   
</item>

<item>
<title>My Link Edit Nightmare</title>
<description><![CDATA[I&#039;m hoping that I&#039;m missing something here.  Please set me straight.

When a user edits their link, it shows up in the validation list at the bottom of the validation page.

The problem that I&#039;m having is that sometimes the user edits are invalid, in other words I don&#039;t approve of these edits and would like to reject them.

I can&#039;t find a reject option for edits.

And if I try to &quot;delete&quot; the edit request, it deletes the link instead.

In order to keep these unwanted edit requests from accumulating, I&#039;m forced into approving the bad edits, and then obviously I must undo these invalid edits and return them to the way they were before.

WSN is great software, what am I missing?]]></description>
<link>https://www.webmastersite.net/forums/threads/my-link-edit-nightmare-5265.html</link>
<pubDate>Fri, 15 Jul 2005 01:49:35 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/5265/</guid>
<content:encoded><![CDATA[I'm hoping that I'm missing something here.  Please set me straight.

When a user edits their link, it shows up in the validation list at the bottom of the validation page.

The problem that I'm having is that sometimes the user edits are invalid, in other words I don't approve of these edits and would like to reject them.

I can't find a reject option for edits.

And if I try to "delete" the edit request, it deletes the link instead.

In order to keep these unwanted edit requests from accumulating, I'm forced into approving the bad edits, and then obviously I must undo these invalid edits and return them to the way they were before.

WSN is great software, what am I missing?]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/my-link-edit-nightmare-5265.html</comments>   
</item>

<item>
<title>Paul, simple customization</title>
<description><![CDATA[(BTW, I love my the WSN software more and more! Thanks.)<br /><br /><br />I&#039;ve added a new numeric member field called MEMBERCREDITS.   <br /><br />Two simple things I&#039;d like to automate with 
this field.<br /><br />1.  Set it to X when the user registers.<br /><br />2.  Have it decrement by 1 on each link submission.<br /><br /><br /><br />I figure there will be some new code in member.php addlink(), but it depends on predefined member field globals and I&#039;m not sure how to correctly make the modifications for this custom field.<br /><br /><br /> function addlink()<br /> <br />  global $plurallinks, $db, $newid;<br />  // incriment counter<br />  $this-$plurallinks = $db-rowitem($db-select($plurallinks, &#039;memberstable&#039;, $newid .&#039;=&#039;. $this-id, &#039;&#039;, &#039;&#039;)); // I have absolutely no idea how this can be needed, but it is<br />  $this-$plurallinks += 1;<br />  $this-update($plurallinks);<br />  return true;<br /> }<br /><br /><br /><br />Do I need to add another global $plurallinkcredits and a similar object member?  If so, where?<br /><br />Can I get away with just changing the DB value and not the member value, so I don&#039;t have to add it?  I guess the first arg to the db-select is the field name?<br /><br />And how would I setup a default value?<br /><br />Thanks so much! ]]></description>
<link>https://www.webmastersite.net/forums/threads/paul-simple-customization-4628.html</link>
<pubDate>Wed, 15 Dec 2004 03:30:20 GMT</pubDate>
<guid>https://www.webmastersite.net/forums/thread/4628/</guid>
<content:encoded><![CDATA[(BTW, I love my the WSN software more and more! Thanks.)<br /><br /><br />I've added a new numeric member field called MEMBERCREDITS.   <br /><br />Two simple things I'd like to automate with 
this field.<br /><br />1.  Set it to X when the user registers.<br /><br />2.  Have it decrement by 1 on each link submission.<br /><br /><br /><br />I figure there will be some new code in member.php addlink(), but it depends on predefined member field globals and I'm not sure how to correctly make the modifications for this custom field.<br /><br /><br /> function addlink()<br /> &#123;<br />  global $plurallinks, $db, $newid;<br />  // incriment counter<br />  $this-&#62;$plurallinks = $db-&#62;rowitem($db-&#62;select($plurallinks, 'memberstable', $newid .'='. $this-&#62;id, '', '')); // I have absolutely no idea how this can be needed, but it is<br />  $this-&#62;$plurallinks += 1;<br />  $this-&#62;update($plurallinks);<br />  return true;<br /> }<br /><br /><br /><br />Do I need to add another global $plurallinkcredits and a similar object member?  If so, where?<br /><br />Can I get away with just changing the DB value and not the member value, so I don't have to add it?  I guess the first arg to the db-&#62;select is the field name?<br /><br />And how would I setup a default value?<br /><br />Thanks so much! ]]></content:encoded>
<comments>https://www.webmastersite.net/forums/threads/paul-simple-customization-4628.html</comments>   
</item>

</channel>
</rss>