inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 2, 2013 22:04:54 GMT -8
I'm trying to make a plugin I can fill the fields up and it will show up in the mini affiliate table on home page. Problem is that when I go to enter new values in, the old value are still there in settings. How do I get it to take new values? (Keep in mind this is my first go at a plugin)
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 3, 2013 9:31:29 GMT -8
Can you point me to which plugin on which forum you're talking about?
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 3, 2013 10:08:16 GMT -8
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 3, 2013 11:18:17 GMT -8
It appears you're using the wrong variables. It should be $[plugin.settings.blocks.user_site] instead of $[plugin.settings.user_site] (and same for user_mini).
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 3, 2013 14:17:41 GMT -8
Tim CamaraCan you look at it again I may have screwed it up! Also tell me what the blocks do.
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 3, 2013 15:01:42 GMT -8
Blocks is just the name of your variable. Since blocks is an autoform, you can't access it like you would any other variable, it's an array. Try accessing it in a loop, rather than directly.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 3, 2013 15:46:58 GMT -8
Tim CamaraDid you take look? It's no doing anything but showing the table. I change the variables in the table like you said.
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 3, 2013 16:03:33 GMT -8
First, you can delete everything you've added to the javascript component. Those lines aren't doing anything. Second, your variables are still incorrect in your footer. You have 'block' instead of 'blocks'. If you're having trouble getting the variable string correct, you can always use the 'Insert' button on the right side. Third, you're still attempting to access the blocks variables directly. This will not work. $[plugin.settings.blocks.user_mini] does not refer to a single value. It refers to an array of values, one item for each item in your autoform. You'll notice that that variable outputs the current length of your autoform, which in this case, happens to be 1. You'll need to loop through all the entries of your autoform, printing them each out individually. You can use a {foreach} loop to do this.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 3, 2013 16:37:11 GMT -8
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 5, 2013 12:08:44 GMT -8
bump
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 5, 2013 12:35:23 GMT -8
What have you tried?
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 5, 2013 12:52:15 GMT -8
I tried in the footer and no results. I got rid of everything on the java. I'm trying to learn and I'm hands on really so I learn as I actually do the coding.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 11, 2013 12:36:14 GMT -8
bump
|
|
inherit
The Dream Crusher (Ret.)
164921
0
Apr 1, 2014 11:00:25 GMT -8
Tim Camara
Teach a man to fish, etc., etc.
1,721
March 2011
tcamara
|
Post by Tim Camara on Dec 11, 2013 13:16:28 GMT -8
Unless I'm blind, that plugin has disappeared.
|
|
inherit
169267
0
Dec 1, 2024 13:31:59 GMT -8
Mike
Praise God Almighty!
1,534
July 2011
riccetts
|
Post by Mike on Dec 11, 2013 15:03:55 GMT -8
Sorry Tim,
<center> <div class="container affiliate" style="width:200px"'"background-color:red" >
<div class="title-bar" ><center><h2>Affiliates</h2></center></div> <div class="content"> <marquee onmouseover="this.stop()" onmouseout="this.start()" scrollamount="3" direction= "up" width="100px" height="50%"> <center><a href="http://healthsense.proboards.com"><img src="https://dl.dropboxusercontent.com/u/94761670/mini.png"></center><br> <center><a href="http://nicetomeet.proboards.com"><img src="http://i64./h166/toetapping/icons%20for%20FF/27aa.gif"></center><br> <center><a href="http://interoceandesigns.com"><img src="http://vegasfoxxgfx.com/IOD/GOTS-Images/BG-Banner/GOTS-MiniBanner-3.png"></center><br> </marquee> </div> </div> </center>
Tim here's the code I want to use for my mini affiliate. I want to know how to make the user interface variables show up in this code that I have above. I have the concept of how the user interface works but I don't know where to put the variables after that.
Can you help?
|
|