Bugs » My instal problems

added on Jun 25, 2007 by Craig
Ok. I am running avarcade and it don't have a [ADD A LINK] so I am giving this ago as include in the links page.

I have added the include code and added a link. Now that link posted 3 times and across and jumbled.
check it here>>http://www.gamesocket.net/task/links/


Now how do I get it added once at the bottom in that block seperate from the arcade script links and how do I get it to
post once

I took a look at the idex.php and man what a jumble that is too...well for me.

Thanks
added on Jun 25, 2007 by Craig
Its the kiwitopsite link I added as a test.
added on Jun 26, 2007 by Craig
ok I found out I needed to put a <br> in the template to stop the jumble.

Now all I got to do is only get it to post the link once. Its posted it 3 times. Any idea why?

Thanks
added on Jun 26, 2007 by Craig
This part is the arcades links page. Now that is so I can add links in the scripts admin.

echo '<center><a href="http://www.gamesocket.net/linkex" target="_blank"><img
src="http://www.gamesocket.net/images/addlink.gif" border = 0></a></center><br>';
include ('config.php');
$sql = mysql_query("SELECT * FROM ava_links WHERE published=1 ORDER BY id asc");
while($row = mysql_fetch_array($sql)){
echo '&nbsp;<a href="'.$row['url'].'"
target="_blank"><strong>'.$row['name'].'</strong></a> -
'.$row['description'].'<br>';

This is the linkex include that I added so that other websites can add their own.
include( "/****/****/****/****/linkex/data/output/1002" );

This is the whole script:

<?
echo '<center><a href="http://www.gamesocket.net/linkex" target="_blank"><img
src="http://www.gamesocket.net/images/addlink.gif" border = 0></a></center><br>';
include ('config.php');
$sql = mysql_query("SELECT * FROM ava_links WHERE published=1 ORDER BY id asc");
while($row = mysql_fetch_array($sql)){
echo '&nbsp;<a href="'.$row['url'].'"
target="_blank"><strong>'.$row['name'].'</strong></a> -
'.$row['description'].'<br>';
include( "/****/****/****/****/linkex/data/output/1002" );
}
?>

See anthing there why it posts the linkex added link 3 times?
http://www.gamesocket.net/task/links/

added on Jun 27, 2007 by Craig
Helloooo......is there anybody out there?
added on Jun 27, 2007 by v0id
hello :)

Sorry about the late reply, I just checked your site http://www.gamesocket.net/task/links/ and when I looked in the
source, I saw "Output generated by LinkEX" 3 times, which means to me that you must somehow have included the
file 3 times..
You just need to include the output file just once, and it'll have all the links for you.

- v0id
added on Jun 28, 2007 by Craig
ummm.. I am sure I just posted an answer to this thread? Didn't I?
added on Jun 28, 2007 by Craig
Thats the links script up there ^^^ with out Linkex.

Now.. maybe its a problem with the arcade script. If I can seperate it on the same page but a different box maybe that
will help.

If I can get Linkex to work within this script I will be telling them in their forum how to get it in their site too.

added on Jun 28, 2007 by Craig
Any idea how to do that? v0id
added on Jun 28, 2007 by v0id
Hi Craig,

I had a look at "AV Arcade" last night, and I am convinced that LinkEX can be used with it.
I noticed that it has a builtin link system.

I see there are a number of links in the sidebar, and when you click "more links.." you goto a page which has
all the links.
Would you like LinkEX to be used both for the sidebar and for the links page?

- v0id
added on Jun 28, 2007 by Craig
Heck yeah. I would. Thanks
added on Jun 28, 2007 by Craig
Maybe need an option to turn that off or continue to limit how many are shown on side bar. I think there is already a
limit setting for it.
added on Jun 28, 2007 by v0id
Ok, actually I'm just making a slight change to LinkEX to make it work better with AV Arcade;
have you seen the category option in LinkEX where you can split the files?
Up until now, you could split the file into several even sizes files, give it a value of 5, and there would be created
an 1001-1, 1001-2, 1001-3 etc etc each having 5 links,

now you can use a value like this: "5," or "5,3,10,10" where each number represent the links there
should be in each file. If you end the input with just the comma, the last file will hold the rest of the links, so for
AV Arcade you could just enter "3,"
and then in the sidebar include the 1001-1 and on the links page include the 1001-2 file

does it make any sense? :)

- v0id
added on Jun 28, 2007 by Craig
What? Hahaha
added on Jun 28, 2007 by v0id
LOL so I diden't make any sense :)

Well it's still early here in DK, and I've only got one cup of coffee, so just stay tuned, and I'll make myself more
clear :)

- v0id
added on Jun 28, 2007 by Craig
lol, ok sounds good to me.
added on Jun 28, 2007 by Craig
You mean the Links pr. file:?

I changed that from 3 to 3,

added on Jun 28, 2007 by v0id
yes the links pr. file, I'm not finished yet, I'll make a new release in an hour or so, then you can upgrade and use 3,
to create two files, the first one having 3 links, and the other file having the rest of the links
added on Jun 28, 2007 by Craig
Will it stop it posting 3 links for the one link? I can't work that one out. I've only put the include in once.
added on Jun 28, 2007 by v0id
ok, just released the new version, check out the changelog http://linkex.dk/changelog.html for a little explanation of
the enhanced feature of links pr. file.

To use it with AV Arcade, you need to do the following:
edit the includes/main.php, first find in the bottom where it says

function links() {

change this to

function old_links() {

and add the following lines:

function links() {
include ('linkex/data/output/1001-1');
}

This replaces the funciton that shows the links in the sidebar.


next find the line where it says

else if($_GET[task] == 'links') {
include ('links.php');
}

instead of "include ('links.php');" it should say "include ('linkex/data/output/1001-2');"

This replaces the function that shows all the links in the tasks/links page.

Alternative you could just modify the templates to make it suit your needs.

- v0id
added on Jun 28, 2007 by Craig
Nope I get a sql error in index.php.

Thanks anyway..I think I might not get this in. I can't even get it from posting 3x in links page.

Thanks void
added on Jun 28, 2007 by Craig
Where do I add

function links() {
include ('linkex/data/output/1001-1');
}
added on Jun 28, 2007 by Craig
I get a sql error and no links page at all
added on Jun 29, 2007 by Craig
Yayayayayayyyyyyyyy... I got it not to post links three times on my links page. Now reciprocating links can be added to
my site....

added on Jul 1, 2007 by v0id
awesome! Glad to hear!

- v0if

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.