|
Haven't registered yet? Do it here now!
|
dood
Joined: 31 Jul 2006 Posts: 6
|
|
|
|
|
|
|
Posted: Tue Aug 08, 2006 7:17 pm Post subject: link formatting question |
|
|
|
|
|
|
|
|
|
|
I need to add a single link for each niche to a script so when a niche link is clicked it will send the surfer to a random gallery in that niche.
Like if you click on "amateurs" it will direct you to a random gallery from the amateurs niche. What link format do I need to use?
Should it be like,
%%galleries,text,1,amateurs%%
-or-
http://domain.com/so/soout.php?niche=amateurs&togallery=random
Sorry, I am helping a friend and don't have access to the SO admin so I'm not sure exactly how it works. |
|
|
|
|
|
|
|
kaktus Owner
Joined: 22 May 2004 Posts: 1576 Location: CheapestAdultScripts.com
|
|
|
|
|
|
|
Posted: Wed Aug 09, 2006 12:43 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there, well there isn't such an option yet in the script to do it directly.
Anyways as i have said SO is pretty flexible script and already with tons of features, and most times there is workaround for everything you need to do.
In your case i think the following would do the work:
%%rgalleries,1-1,Babe Gallery,babes%%
We use the "rgalleries" format, which pulls random gallery from the text galleries database and provides the ability to put your own description.
So use the token i stated above and just replace "Babe Gallery" with the name of your niche as it should be displayed on the site, and the "babes" to specify the niche from which the script should pull the gallery from.
Let me know..
Thanks! _________________
|
|
|
|
|
|
|
|
dood
Joined: 31 Jul 2006 Posts: 6
|
|
|
|
|
|
|
Posted: Wed Aug 09, 2006 7:52 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I think the template is rejecting the javascript. I'm using a drop down to select niches and when clicked it replaces "+ cat +" and should direct you to a random gallery in that niche but maybe I did something wrong?
Like this...
Code: |
<select name="select" id="opt" onChange="go();">
<?php
$cats[] = "amateurs";
$cats[] = "Asian";
$cats[] = "Anal";
$cats[] = "Babes";
echo '<option value="Select">Select</option>';
foreach($cats as $cat){
echo '<option value="' . $cat . '">' . $cat . '</option>';
}
?>
</select>
<script language="javascript">
function go()
{
id = document.getElementById("opt");
cat = id.value;
if(cat=="Select")
{
return;
}
url = "%%rgalleries,1-1,Amateurs," + cat + "%%";
window.open(url);
}
</script>
|
|
|
|
|
|
|
|
|
kaktus Owner
Joined: 22 May 2004 Posts: 1576 Location: CheapestAdultScripts.com
|
|
|
|
|
|
|
Posted: Fri Aug 11, 2006 1:12 am Post subject: |
|
|
|
|
|
|
|
|
|
|
well, i don't some something wron in here, that SO should reject as you say. Whats exactly the error when you save this into your template?
Thanks! _________________
|
|
|
|
|
|
|
|
dood
Joined: 31 Jul 2006 Posts: 6
|
|
|
|
|
|
|
Posted: Fri Aug 11, 2006 2:04 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
I don't have access to the SO admin so I didn't get to see the errors, but we just wrote a script to connect to the db which adds links for all available niches and each click on each niche name produces a random gallery link for that niche. Works great.
You don't have to answer this part below, it just helps to think out loud sometimes. The answers are already there but I haven't looked for them yet.
Since I don't have access to the admin I'm not sure how to add the ucj link code to gallery links. Whether you add it on a template page directly or if it is defined within the SO script with a prefix and suffix.
Maybe like,
/cgi-bin/ucj/c.cgi?u=%%URL%%&p=80&l=gallery (in the template)
/cgi-bin/ucj/c.cgi?u= (prefix in the script settings)
Thanks for the help, SO is a really nice program. |
|
|
|
|
|
|
|
kaktus Owner
Joined: 22 May 2004 Posts: 1576 Location: CheapestAdultScripts.com
|
|
|
|
|
|
|
Posted: Fri Aug 11, 2006 7:26 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
hi there, thats cool you managed it by yourself
As i have been always saying, just be creative and you can do really lots of things with SO.
So are you having any problems, questions again?
Thanks! _________________
|
|
|
|
|
|
|
|
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
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
phpBB Template designed by SkaidonDesigns |
|
| |