 |
 |
 |
 |
 |
| Author |
Message |
marcelvk
Joined: 19 Jun 2008 Posts: 23
|
|
Xfield |
|
I have this in my template:
 |  | <?php echo file_get_contents ("http://www.mywebsite.nl/cnr/mygallery/gallery.inc.php?mggal=[xfvalue_VALUE]"); ?> |
And it works like charm i don't have to put in the whole code in to the post i just have to put in a number when i ad a gallery.
But what i would love is something like PJR is asking
 |  | but I'd like to put some function (yes the ajax rating) to only some post. I think using XFields is the best way, isn't it? |
Example:
 |  | [xfgiven_VALUE]
<?php echo file_get_contents ("http://www.mywebsite.nl/cnr/mygallery/gallery.inc.php?mggal=[xfvalue_VALUE]"); ?>
[/xfgiven_VALUE] |
So i can turn in the gallery in a story... could someone help us?
|
|
| Sat Oct 04, 2008 9:52 am |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
marcelvk
Joined: 19 Jun 2008 Posts: 23
|
|
|
| Mon Oct 06, 2008 4:18 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
What about creating a second XField called "show_gallery"?
Make it optional. If you put something in it will show the gallery. If you leave it empty it won't show the gallery.
|
|
| Thu Oct 09, 2008 5:45 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|