Xepher.Net Forums

Community => Knowhow Trading Post => Topic started by: fesworks on November 09, 2006, 01:27:04 AM

Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on November 09, 2006, 01:27:04 AM
This is going to be in a *.php page.. so I guess I need code for PHP, JAVA, or HTML.

But I am wanting to have small image links to other webcomics, but I would like them to cycle through either timed, or per refresh... either as an ordered list or random... and then with each image that shows, there is a new link associated with that image. I think I used to be able to randomly display images before, but never with changing the  hyperlink.

is this easy to do? does anyone know how to do that, or at least tell me some key words of which I should look for the "how to" myself?

Thanks in advance.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: dragyn on November 09, 2006, 06:30:59 AM
I'll have to watch this thread, as this is something I've been wondering about for a bit myself.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on November 09, 2006, 08:09:12 AM
$random = rand(10,13);

if($random == 1) { $logo = "xepher_logo_fredirc.gif"; }
if($random == 2) { $logo = "xepher_logo_nerdboy.png"; }
if($random == 3) { $logo = "xepher_logo_gwyn.gif"; }
if($random == 4) { $logo = "xepher_logo_icy.gif"; }
if($random == 5) { $logo = "xepher_logo_nerdboy2.png"; }
if($random == 6) { $logo = "xepher_logo_technostyle.jpg"; }
if($random == 7) { $logo = "xepher_logo_gwyn2.gif"; }
if($random == 8) { $logo = "xepher_logo_willsan.png"; }
if($random == 9) { $logo = "xepher_logo_databits.gif"; }
if($random == 11) { $logo = "XepherNet.jpg"; }
if($random == 12) { $logo = "XepherNet2.jpg"; }
if($random == 13) { $logo = "XepherNet3.jpg"; }


if($random == 10) { ?>

XEPHER.NET

Free Hosting for Free Thinkers

}else{
echo("XepherNet Logo");
}

?>
That file is http://xepher.net/logos/randomlogo.php and is included at the top of all main xepher.net pages to rotate the logo. You'll note in the code, I'm only using logos 10 through 13, as the other logos were user-submitted years ago, and no longer fit the layout. Logo "10" is a special case, and spits out a two line text logo. Hopefully you can see how you can easily include additional code to change the hyperlink in the same way. Also note this is VERY ugly/primitive code, being that you have to add a line for each new image you add. Of course, it adds a bit of security that way, as no one can trick it into including a file I haven't specifically listed. If I had a ton of images to rotate, I'd write something that just pulls from a directory listing, but as I've yet to do that, I can't actually post code here for it.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Databits on November 09, 2006, 05:03:53 PM
or if you wanna be more complex, you could use a database to store image location information in a sequential order, then simply do the random thing between the number of rows in that table, pull that row, and use that image.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on November 09, 2006, 09:33:06 PM
Quote from: XepherThat file is http://xepher.net/logos/randomlogo.php and is included at the top of all main xepher.net pages to rotate the logo. You'll note in the code, I'm only using logos 10 through 13, as the other logos were user-submitted years ago, and no longer fit the layout. Logo "10" is a special case, and spits out a two line text logo. Hopefully you can see how you can easily include additional code to change the hyperlink in the same way. Also note this is VERY ugly/primitive code, being that you have to add a line for each new image you add. Of course, it adds a bit of security that way, as no one can trick it into including a file I haven't specifically listed. If I had a ton of images to rotate, I'd write something that just pulls from a directory listing, but as I've yet to do that, I can't actually post code here for it.
Ah yes! Thanks you! this will help when I re-vamp the site and images.

I suppose I could also do this code a few times with seperate sets of images for each, so I can have 2 different Webcomic Links in 2 different spots (so I don't get the same).. though I am sure that doing more would make the load time of the home page much longer...


Quote from: Databitsor if you wanna be more complex, ...
ooh, no no, that's ok ;)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on November 10, 2006, 12:28:06 AM
I wouldn't worry about load time increasing if you want to add more stuff. This code is so simple, it takes an order of magnitude longer to actually send the page than it does to process it. And if you want to throw out two random links, just include the file in both places on your actual page.

Lemme give this a shot...

$random = rand(1,3);

if($random == 1) { $img = "comic1.gif"; $link = "http://www.comic1.net"; }
if($random == 2) { $img = "comic2.png"; $link = "http://www.comic-2.net"; }
if($random == 3) { $img = "othercomic.jpg"; $link = "http://www.comic-other.com"; }

echo("");

?>
There's a three-way example. Just add more lines and change the "rand(1,3)" to a match the number of lines to scale it up.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: dragyn on November 10, 2006, 12:53:18 AM
Alright.  Thanks!  I'll keep this thread in mind for when I actually implement any randomization.

And yeah...that's plenty complex for me.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: dragyn on November 10, 2006, 06:56:29 AM
Yay, implementation!  

Eventually, I'm trying to have a banner for all my characters, but for now, I only have 4.

Thanks for asking, Fes.  It's always fun to use the answer to someone else's question.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on November 11, 2006, 02:43:42 PM
mooch :P
Title: Need help on randomly displaying images w/ hyperlinks
Post by: dragyn on November 13, 2006, 08:27:46 PM
Yup!
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 02, 2007, 02:13:59 AM
New question. How can I make this go in order instead of random?

AND, like that one where it shows text instead of an image, would I be able to show an Image w/link AND text?


I'm thining about that "Xepher.net Comics" cycling image thing I was talking about. That other code is copyrighted and specially made, And I can't really get a hold of the author.

So I'm thinking about using this generator and using it in an iFrame tag, so that it can be clicked back and form within a page, without reloading the main page (also to save the loading time of the main page, the iFrame can load seperately).... unless there is a PHP way to make a reloadable field.

I know I don't know PHP code, but If I can get the basic code, I can do all the tedious work of getting banners and and the list making.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 02, 2007, 09:43:15 PM
Define what you mean by "in order." If you've got a lot of vistors all showing up, do you want the first one to see image 1, the second see image 2, etc.? Or do you mean some way to track so that each person sees the images in order as they click new pages?

As for the second bit, you can make it output anything you want. It basically just selects a snippit of HTML to spit out. You can make that snippit anything you want, from IMG tags, to text, to links... whatever HTML you want. It's just replacing any of those $variables with the text they're set to. Add more as you need.

If you do it in an iframe, you need to make a full "page" of html around the php code... you know, the HTML and BODY tags and such.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 03, 2007, 01:37:14 AM
Yea, I know that about the iFrame.

as far as the "order", basically the PHP "random" is a piss poor randomizer. I got a lot of repeats... I want something that will display a differentthing each time until all have been displayed... I mean the first one could be random, but then there should be a Hyperlink to click that will go to the next one in series.... and so on...

see, I'm trying to figure out a way to do a PHP version of that other Java Script one that I can't get permission to use... plus This might be easier if I can get the basic codes.

Am I making sense? I hope I am :P
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Omega0 on March 03, 2007, 03:14:43 PM
Is this what you want?
if( isset( $HTTP_COOKIE_VARS['BANNER_NUMBER'] ) )
{
$banner = $HTTP_COOKIE_VARS['BANNER_NUMBER'];
$banner = ($banner + 1) % 3;
}
else
{
$banner = rand(0,2);
}
setcookie( 'BANNER_NUMBER', $banner, time()+(60) );
?>
When someone first visits the page, they get a rand() banner.  Then each time they reload it after they get the next banner in series (you'd want to change the (60) in the setcookie to something longer, like (60*60*24*30)).
Demo: http://omega0.xepher.net/stuff/banners.php

If you want to be really tricky, and randomize it further, you could do something like this:
if( isset( $HTTP_COOKIE_VARS['BANNER_ARRAY'] ) ) {
$banners = split( '#', $HTTP_COOKIE_VARS['BANNER_ARRAY'] );
}
else {
$banners = array(0,1,2);
}

if( count($banners) == 1 ) {
$banner = $banners[0];
$newbanners = '0#1#2';
}
else {
shuffle( $banners );
$uns = $banners;
$banner = array_shift($banners);
$newbanners = array_shift($banners);
while( $temp = array_shift($banners) )
{
$newbanners = $newbanners . '#' . $temp;
}
}
setcookie( 'BANNER_ARRAY', $newbanners, time()+(60*60) );
What this does, is store a list of undisplayed banners in a cookie like 1#2#3.  On each load, it mixes up the list, pulls of the top one to display now and then stores the remaining choices in a cookie.  So the viewer can't get the first one again until all the others have been viewed, but he won't get them in the same order every time (but you could get a repeat like this: 1,2,3,3,1,2 since after the 1,2,3 they've all been viewed and it could very well start with 3 on the next run through of the list.  With a large list though, this becomes rare, and you could modify the code to exclude the last one when reloading $newbanners with the full list).
Demo: http://omega0.xepher.net/stuff/banners2.php

If you don't care about tracking each user individually (or care about those people who turn off cookies), you can do something like this:
$f = fopen("bannerlist.txt","r");
$banner = fgets($f);
fclose($f);
$f = fopen("bannerlist.txt","w");
$next = ($banner + 1) % 3;
fputs( $f, $next );
fclose($f);
?>
All this does is store the value of what the next banner should be in a text file and does open, read, increment, save on each load.  And you could always combine #2 and #3.

Demo: http://omega0.xepher.net/stuff/banners3.php
The text file is: http://omega0.xepher.net/stuff/bannerlist.txt

So, does any of this do what you want?

And does anyone know a simpler way for what I did in #2?  I can't believe that (in a perl-like language no less) there wouldn't be an easy array->string converter.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 04, 2007, 10:08:18 PM
The PHP random does a pretty good randomization. Of course, with any small-ish set of options, true random IS a lot of repeats. Obviously that's not what you want though. I think Omega's suggestions here are pretty good to do what you want. He also showed you both ways (per-user/cookie based selection, and site-wide with the bannerlist.txt, which were what I was asking about in my earlier post) so just figure out which one works for your needs and try it out.

And no, I don't know of a better way to do array->string off hand, though I'm sure there must be one... there always is, no matter what function I'm trying to do. :-)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 05, 2007, 03:33:27 PM
Ok, the cookie thing would be ok, (#2) but what about when the block cookies? does it just randomly pick a new banner each reload? Also, how does #3 work? I mean, it looks like it may need to make a new file for each and every visitor, or that every visitor shares the same file?

Also, I can't tell from your code where you put the code to say what to display "Banner 2 gets displayed this time" etc...

might it be something like this? :

if($banner== 1) { ?>



A description of above site.

if($banner== 2) { ?>



A description of above site.

if($banner== 3) { ?>



A description of above site.
and where would this be placed?




Personally, I was thinking of a pre-set list of sites, with the first one being randomly picked (which I think does not need cookies, thus less searching and loading?), along with links for "Previous" and "Next" to go along the given list.... also, as a new thought, I'll also need a link that will point

Also, the thing is that , for people to be able to put this onto their HTM pages, this is going to be a seperate page, so people can have an iframe code. I'm going to have a button link within the iframe'd page to reload itself... that or I was going make a link for "next" in the list. How would I make a "next" link in PhP for this banner array?

I mean with that in mind I could do it with a bunch of HTM pages and code, but I'm sure it would take a much longer loading time and a ton of extra space and code.... to what would certianly be a something horrifically archaic to the both of you.




ok, here,  this I was just thinking about doing:
(http://i92.photobucket.com/albums/l40/fesworks/sample-3.jpg)

The "<<" and ">>" would be linking to "Previous" and "Next" on the given list.

Inbetween that would be static text and/or a custom Xepher.net image with some sort of moto or such like I have listed there.

Under that would be where the banner and description would be. The banner will carry the link to that site.

under that is my new idea and "Link1", "Link2", "Link3", and "Link4" would point to different list sets (either as a different page altogether or just a different TEXT LIST (which I think is what you were talking about). The lists would be like what is one Xepher.net.... one link for "Art", one for "Comics", one for "Fiction", and one for "Others"... and if they click on "Comics" while already on the comics list, it could just pick something from the list at random.



ok, I hope that is descriptive enough, and not too complicated. Those multiple link sets are the new idea, so that is an extra thought.

Also, I greatly thank everyone for their help with this! I don't mean to look all needy/difficult because I can't do this myself : When I can piece everything together (including either snatching or creating banners for all sites here). I'll post it. I think this could be a really cool addition for those that would like to pimp other xepher sites in an interactive way.


Unless I'm making this more complicated than it needs too be :P
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Omega0 on March 05, 2007, 05:54:39 PM
>> Ok, the cookie thing would be ok, (#2) but what about when the block cookies?
When cookies are disabled, it follows the else-branch from the isset() and chooses a random one from the full list.

>> Also, how does #3 work? I mean, it looks like it may need to make a new file for each and every visitor, or that every visitor shares the same file?
One file.  Visitor 1 gets banner one, Visitor 2 gets banner 2, Visitor 3 gets banner 3, Visitor 4 gets banner 1 and so on.  There's just one current banner, whoever loads the page next gets it.

>>Also, I can't tell from your code where you put the code to say what to display "Banner 2 gets displayed this time" etc...
My code just sets a variable $banner which later in the page is used in the if's to display the text; I think you have the right idea in your code (though I've never used that construction in PHP).  Since cookies have to be set before any output occurs, the banner selection code is at the top of the file and the if's come later where the banner is supposed to go.  The link at the end of this post shows the code I used.

>>How would I make a "next" link in PhP for this banner array?
With HTTP_POST_VARS[] overriding the cookie or random behavior.  If the current banner is #2, The next link would be something like "bannerbox.php?banner=3"  The code would be something like
if isset( HTTP_POST_VARS['banner'] then $banner = HTTP_POST_VARS['banner']
else $banner = COOKIE or random as previously

Demo: http://omega0.xepher.net/stuff/bannerbox.php
Code: http://omega0.xepher.net/stuff/bannerbox.txt
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Databits on March 05, 2007, 08:02:39 PM
Far as I'm concerned... if a user has cookies blocked, they're morons and they shouldn't be on the net anyhow.

Contrary to belief, there is nothing insecure about having a website set a cookie in your web browser. The only problem is when some dumb sites store sensitive information in their cookies, which even in that case, other sites can't read that information anyhow.

It's under the same situation as people who disable Javascript for security, also really dumb. There's a lot of commerce sites that make use of things like Ajax, which is impossible for people to use when they have no Javascript. People shouldn't need to set their sites up to give leeway to those who don't really know what they're talking about and wanna disable everything thinking it'll stop the virus from getting on their computer while they browse porn and download illegal software.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 06, 2007, 12:03:02 AM
Fes: I think Omega answered your question(s) again, so I'll let you digest that before adding more. Don't worry about asking too many questions though, we're glad to help. What you're trying to do is actually quite simple, once you get down to it. It's actually probably harder to explain than to do. The trick is getting all the code details right (like which bracket goes where.) As I don't program all the time, I know concepts just fine, but I forget syntax when I'm just winging it or pasting snippets, so if something I've given you doesn't work, often I've just overlooked some stupid detail. Perhaps if I get some free time later, I can actually write out an effective script for what you want to do. Can't promise anything though.

Data: Blocking cookies doesn't really improve anti-virus measures, but it does help with your privacy, if you're the sort to be concerned about that. Many ad/banner companies send cookies with with ads, effectively giving you a fingerprint. As you browse around other places, they track your usage patterns for market research. Some people feel that's an invasion of their privacy, and block cookies. Now, that said, if something's broken because you're blocking cookies indiscriminately, that's your own dang fault! :-)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 06, 2007, 01:34:45 AM
Haha, Actually I block every single thing that pops up unless I need to log in to the site :P (I have it ask every time).


as far as the code. Well, I'll see what I can do with what I can figure out from these code pieces. But from this point I think I'll be able to make something. I'll need to work on it later in the week though.

Thank again for the ongoing help, and don;t worry about me asking questions.... because I sure will ;) :P
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 08, 2007, 06:47:42 AM
Oh man, I looked at that code... all of the codes... I just can't wrap my head around how to place ANY of it in a proper sequence, let along get it to place images! I know nothing about PHP unless its already in place and works, I can modify it... But I just can't figure this out!

All the images should exist in the same folder... all of the comics with their image and text should be listed in it's own array....

(http://i92.photobucket.com/albums/l40/fesworks/Clipboard02-3.jpg)
(opps, forgot to change the bottom images brackets to "Prev" and "Next")

Can't I just give one of you $20 (all I can do) to figure out the base code for this in a cookie-less, extra text file-less (if possible) code? I can be more exact and descriptive if needed... I just need the base, and I can plug all the individual banner img addresses and text phrases in.. I just need an exaple and placement markings.

If not possible I'll try and troll the internet for pre-made ones I can used, or do the whole thing in HTML and a 75 pages or something.

I just can't piece all of these PHP code fragments together. Sorry! I don'r mean to be so difficult sounding!
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 08, 2007, 08:21:08 PM
I can do it when I get a little bit of free time... probably tomorrow or saturday. Don't worry about the money, I help when I can. Besides, I need similar code for some of my own stuff in the future, so it wouldn't hurt me to have some snippets lying around.

Let me see if I've got the details straight first though:

1. Main image and text. These always go together... that is, a particular image always has a specific text block with it. Image & Description. These get shown...

2. ...Randomly on first view. Next + Previous buttons let people flip though them in order.

3. (This is the one I'm confused on.) You obviously want it to not show the same image over and over to the same person if they're viewing a lot of pages with the banner code in it. How do you want it to work though. Do you want it to rotate per person? (In which the script saves it's current position in a cookie) Or rotate for the site as a whole? (which would involve storing the current position in a small file.) You says cookie-less and file-less, but you really have to have one or the other unless you resort to URL trickery, with the code adding something like "index.php?session_id=297597829adf7897f09a0dfjd9d77" to each URL and link on your site. I don't think you want that. I'd suggest the cookie method, as it should work best for about 90-95% of people.

4. The buttons at the bottom (comics, art, fiction, other)... how do they work? I notice that they highlight based on the category of the current image displayed, but does the function change? That is, does it do something different when I click based on what image is showing, or is it the same link all the time?

Let me know on those, and I'll see what I can whip up for you.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 09, 2007, 02:47:16 AM
1) Yep

2) Yep

3) My plan was for the think to be only shown on a sinlge page (home page or Links page... where evern other Xepherers would like to put them if they'd want one).... I planned to have all the code on a PHP page that could be iframed for loading and re-coding effieniency.

All I was thinking is that the first one would be randomly picked from the list (on first load and on refresh). Then just go in order from there and go back to the top of the list once you get to the end.

I don;t think that cookies would be needed because a list would be big enough for a decent random pick anyway, and should streamline the code and loading if it does not need to check a cookie somewhere.


4) Basically, i'm thinking of List sorting... "Arrays" are they? Like the link box would always start on "Comics", and then the random image/text set will be shown from a list or array of sets of just listed webcomics on Xepher.... You click "Art" and a new random image/text set will be selected from a list or array of only Art sites on Xepher.

Now I'm saying it like this because I'm assuming that having a sepperate list would be helpful with checking codes.

Like:

IF click "Comics" GOTO "ComicsLIST"
IF click "Art" GOTO "ArtLIST"
IF click "Fiction" GOTO "FictionLIST"
IF click "Comics" GOTO "OtherssLIST"


LABEL ComicsLIST"
comic_1_Image
comic_1_Text
etc..
END GOTO "ComicsLIST"

LABEL  "ArtLIST"
Fiction_1_Image
Fiction_1_Text
etc..
END GOTO "ArtLIST"

LABEL "FictionLIST"
Fiction_1_Image
Fiction_1_Text
etc..
END GOTO "FictionLIST"

LABEL "OtherssLIST"
Others_1_Image
Others_1_Text
etc..
END GOTO "OtherssLIST"

At least that is what I was thinking... and then when one clicks NEXT or PREV they stay in that list. I'm guessing they may need to have different pages for seperate lists, But I don't know.


5) You know how the Xepher News Box is Editable? Well, If I make it an iframe, it may not work that well like that, so I'm probably make different pages. One for each of trhe four categories to start with. So an art site can link to the page that starts with the art section.


I'm sure this could be done like the Xepher news box.... all the code at the tope of the page with that one line to place it where you'd like it.. customize colors? But that, I'm sure is a bit fancier and more involved coding.... Not meaning to get really complicated! I mean, I originally meant it to be a simple alternative/addition to the texty Xepher New Box.  I really wanted to better visually promote the Xepher.Net webcomic community :D
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 09, 2007, 04:30:06 AM
I've actually had plans for a while to eventually integrate images into the Site Descriptions you can set for your site, and they'd show up in the newsbox instead of just a text description. Also some code to make it so you can see different banners/text BEFORE selecting a site to go to from the dropdown. I just never got around to it.

Okay, on item 4... I think I know what you want now. You used more technical terms than I want to guess at. I don't speak programming, I just know what I want in plain english. :-) On that note, you want people to click the "art" button, and have it load a random art banner/text, at which point next/prev buttons would flip through only art sites. Similar situation for the other buttons. Is that right?

As for customization, as per the XN newsbox... It's doable. Though for this idea, I'm not sure you want it. If site owners can change the colors and what not, you end up with radically different looks. So one artist designs their banner to go with how they have their box laid out, but then it shows up on another site and looks totally out of place. Or someone sets it to white-on-white or something. I'd say just make it as as simple as possible, but keep it standardized.

About embedability... that is, putting it as part of the actual page like the newsbox: That only works (via PHP) on one server, since all the boxes would get displayed by the same server, it can do that. To enable it to be done on other servers, you need iframes, javascript, or another server with a rather insecure PHP installation that allows inserting code from remote servers. Bottom line is that anyone can use an iframe, only people with pages in PHP can use a direct PHP insertion.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 09, 2007, 05:53:44 AM
Quote from: XepherI've actually had plans for a while to eventually integrate images into the Site Descriptions you can set for your site, and they'd show up in the newsbox instead of just a text description. Also some code to make it so you can see different banners/text BEFORE selecting a site to go to from the dropdown. I just never got around to it.
Well I was hoping to make something like that because your text version is boring :P but, alas, coding this stuff is not my forté.

Quote from: XepherOkay, on item 4... I think I know what you want now. You used more technical terms than I want to guess at. I don't speak programming, I just know what I want in plain english. :-) On that note, you want people to click the "art" button, and have it load a random art banner/text, at which point next/prev buttons would flip through only art sites. Similar situation for the other buttons. Is that right?
Yes.


Quote from: XepherAs for customization, as per the XN newsbox... It's doable. Though for this idea, I'm not sure you want it. If site owners can change the colors and what not, you end up with radically different looks. So one artist designs their banner to go with how they have their box laid out, but then it shows up on another site and looks totally out of place. Or someone sets it to white-on-white or something. I'd say just make it as as simple as possible, but keep it standardized.
k

Quote from: XepherAbout embedability... that is, putting it as part of the actual page like the newsbox: That only works (via PHP) on one server, since all the boxes would get displayed by the same server, it can do that. To enable it to be done on other servers, you need iframes, javascript, or another server with a rather insecure PHP installation that allows inserting code from remote servers. Bottom line is that anyone can use an iframe, only people with pages in PHP can use a direct PHP insertion.
Well I was thinking that people would just get the iframe code from me, so they would not have to worry about uploading the image sets or whatnot... and people could just iframe it to a PHP page on my account, so if I need to add a newly approved account, I could easily change it for everyone without having people bothering with the code again.

If you know what I'm talking about... basicaly make it easy for others to implement, so they would be more inclined to do add it to their site.


I mean, if you want to take these ideas and use it for your new News Box, go right ahead, The only part that would be difficult would be the image display, which would mean that by how people have the news box on their site, the images would have to be Avatar size instead of Banner size, like that Cornstalker thing I showed you earlier..
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Databits on March 09, 2007, 06:16:39 PM
You may also try storing image data in the database. Since databases are much faster than just straight file system access, and benchmarks for images in a database are surprisingly fast. The only issue you run into then is writing a serving script (which really isn't hard to do) to pull the image from the db and give the correct image headers. In which case you can just tell a query to pull one at random I'm sure.

Then you'd have something like this for images on your site:

....On a side note, the standard php mysql connection stuff is really a pain in the butt to use and not very friendly. I would suggest to use something like PEAR::MDB2 if Xepher would install it. It's really a kick ass setup and makes a TON of things easier, and the best part is you can change up the database back end on your site and need to make few code changes most the time.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 09, 2007, 07:48:22 PM
Funny, I've never had a problem with the standard MySQL functions... but maybe it's just a case of not knowing what I'm missing. As for PEAR::MDB2... like VIM, just ask, and I can usually install most things. For this particular project though, I think I'm just going to write a simple little script with flat file (or maybe sqlite) storage. I want something fes can understand and tweak if he wants. Later, when I implement something for the site as a whole, I may do some more advanced stuff. I've consider image storage in database blobs for a while now, but I read pros and cons about it, so I'll wait for the right place/time to do it.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 11, 2007, 01:38:05 AM
Okay, I've got code that does your banner exchange EXCEPT for categories. I went to tack on the categories and hit a small bump, so I may rewrite the whole thing, but if I do, it's going to be rather more complex. As such, I wanted to go ahead and post this simple-yet-ugly version for you to look at and maybe learn from while it's still possible to deduce what things are doing.

Working example at http://xepher.xepher.net/Banners/banner.php

Code for that file is http://xepher.xepher.net/Banners/banner-source.php


Now, back to trying categories... to database or not to database, that is the question. :-)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 11, 2007, 01:55:47 AM
Hey, even without the additiona categories that's fine. Since it seems like you had a similar idea for the news box already (if I understood you right).

I can use this as the original idea as the Xepher Comic thingee (to start) at least.

Thanks! I'll work on this :D
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 11, 2007, 04:27:32 AM
Hey someone said I could do something on my computer so I can run PHP.... right now I just basically keep uploading it to my account to view changes.... how do I make Frontpage or Dreamweaver perform the PHP code (if possible)?
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 11, 2007, 05:18:37 AM
Cool! I'm getting the hang of this code now!

Now that daunting (sp?) task of copy-pasting descriptions and making Banners.

... heh... Nerdboy :P
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 11, 2007, 05:27:24 AM
It's not really possible to do that... not easily anyway. You can run a webserver on your local computer, but it's a major pain. I'd suggest editing the code on the server itself. You log in through SSH and then you can run a command line editor. It's good for small/quick changes, but if you're doing a major edit, it's probably easier just to reupload. I personally use SSHFS, which lets me mount a remote server directory via SSH as though it were a local folder. If you're not using linux or something similar I don't know where to point you though.


Now, I think I've redone a much better script in the past few hours. The actual output is ugly as sin, but that's the part I assume you're going to tweak. The code itself is a lot more functional, allowing you to upload images and descriptions, and delete things from a web interface, as well as get a quick thumbnail-ish view (it doesn't actually thumbnail, but just lays them out the same way) of all the banners. It's not perfected yet, but I'm tired tonight, and it's mostly functional. I'd like you to go play with it and find out what's still broken, and then I'll fix it tomorrow.

The display code. http://xepher.xepher.net/Banners/bannerDB.php which doesn't have many banners installed yet, so it doesn't really show much.

The admin interface is accessed by adding "?admin=1" to the file's url. http://xepher.xepher.net/Banners/bannerDB.php?admin=1 It's set up to ask you for a password on initial install, and after that require you to login (with cookies) in order to add or delete banners/descriptions. The current password is "slingshot" so you can try it out where it sits.

The raw code for the file is viewable at http://xepher.xepher.net/Banners/bannerDB-source.php if you want to copy it to your own folder and start playing with it. You mainly just need to edit the "$baseurl" variable to tell it where it sits, and it should install itself from there. Note that the admin view uses a lot of fancy graphics and some javascript files that are located in my particular install. You don't need them for it to work, but if you want them, you can just download them from my install with the "save as" thing or I can make you a zip file of all of it sometime tomorrow. You can pretty easily strip out the java/pics or replace them with your own if you want. If you try your own copy and get it screwed up, delete the database file "banners.sqlite" and it will start back at the install screen and ask you for a new password.

Oh, if anyone else wants to play around with it, feel free to log in and add your own fake banners to see how it works. Let me know if you find bugs.

Hmm... one more thing. There's a couple bits of code leftover from my image catalog program. Two variables, $width and $height which are set to 400 and 200 respectively right now. If you decide to go with different sized banners, you may want to change those to match, or it could make some of the stuff look funky.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 11, 2007, 05:33:25 AM
Aww man, and after I just got to Schwarz Kreuz! (3rd comic, I skipped a disabled site ;) )

I'll check this new code later. For now I'm going to stick to making some more banners.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 11, 2007, 05:43:13 AM
No problem... I think you'll like the new script a lot better, as it doesn't require you to edit any code to add or delete banners/members.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 11, 2007, 05:49:31 AM
Ok, I'll looking into that more. I was actually planning on using basic 468x60 banners for this.

That admin section is wild though 0_0

cool :D


This is all I have been working with so far:
http://fesworks.xepher.net/Banners/banner.php

getting descriptions and banners going ;)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 12, 2007, 02:56:00 AM
Xepher. Can you give me an official "Xepher" font? I'm going to try something with some images, and would like a uniform font for things representing Xepher.Net
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 12, 2007, 03:39:17 AM
Still using the older, first code you presented, I made a page with an iframe to display it.
http://fesworks.xepher.net/Banners/Display.htm


I finally checked the new code.... code shock o_0
I'll have to definetly tackle that after the PSI and Ardra updates this Mon and Wed.

Still really awesome! thanks for helping so much!



EDIT: Actually, for the time being, it's been kinda fun making the banners! I've been going in order as listed on the Xepher Site Directory, and descriptions... adjusting them slightly.


DAMN PHP! hpw come PHP can't produce special characters? I've noticed this with "©" and "ñ" thus far... Remedies?
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 12, 2007, 08:30:24 AM
Wow, finding a few sites that have not been updated for nearly 9 months to a year :/


(boy, I'm blabbing a lot :P )




EDIT:

All done with the comic list:
http://fesworks.xepher.net/Banners/Display.htm

I excluded the disabled account ones, a couple I deemed as "art" because there were not actual webcomic on the site, and I also excluded Two comic sites had their entire archive taken down. I only e-mailed one of them.

I included ones that seemed to have not updated since summer of 2006 or earlier (for at least archive purposes at this time.)

If you would like a semi-comprehensive list of the sites in question just ask.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 12, 2007, 03:47:02 PM
I may get that list from you at some point in the near future, but I don't have time to deal with dead accounts right now, since they don't really hurt anything by being there.

Official font: Umm... there's not really one. The one currently in the logos on the main site is "Dragonwick" but that's not really something suitable for paragraph text (or really anything but logos) due to it's weirdly sized capitals. What is it you're wanting to do?

Code Shock: Well, as you can see, I didn't document much of it either, as I'm not really planning for you to change much of it. Really only the bit at the end where it actually outputs the HTML, and a few minor settings like the $baseurl one. Ask all the questions you want and I can try to help you understand it though.

PHP and special characters: PHP does unicode just fine. Show me an examples of what works in a normal webpage, but doesn't work in php, and I'll figure out how to set it up. Usually you just need to use UTF-8 for the character set. The two characters you mention, are they showing up okay in the forum here? I see a circle-c (copyright) and an "n" with a ~ (wiggle line) over it. If that's correct, then you should note that this forum is PHP and uses UTF-8 character encoding.


Something weird... the banners for PSI and Nerdboy don't show up in my browser (Firefox 2.0.0.1) and I also note they're the only two .gif banners. Both images work fine if I view their URL directly though. I have no idea why that is.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 12, 2007, 09:57:09 PM
No they never work on a PHP page like on a website. ALT+0241 prints a "ñ" in the HTML code part when I edit the PHP page, but it shows up as a "?" when online. So I guess I need to know how to make it so the PHP pages, when I edit them, that they show up... the GARNET webcomic's description should say "(Tambien en Español)", but what prints one online is "(Tambien en Espa?ol)"


That is wierd with the GIFs... when I get a chance, I'll make JPEGs.


RE: Code Shock RE: yea, I figured as much, but I was on a roll with the old code. I'll look at the new stuff later.


What am I planning to do? Well, I kinda wanted to make a slightly more visual Site directory, starting with webcomic. Figured I'd get some uniform text images of the Xepher Name on a page listing all the webcomics (then the Art section perhaps, though it'd get a bit harder to properly work out from there). Not trying to go over your head or anything, I'd just thought it'd cool to work on when I have free time here and there.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 13, 2007, 12:05:14 AM
Okay, so you just want the word "Xepher.Net" in a font for the page header or some such? If it's a logo/header type thing, just go with Dragonwick, as per the graphic logos from the main page. Don't worry about "going over my head." I mean, for one, there IS no one over my head. :-) I encourage community effort, and it seems like a great idea... I just don't want you (or anyone that's putting in time/effort for the community) to get upset if I don't particularly like their idea or design... or if I make it obsolete by doing my own "official" version in the future. Like the banner exchange thing, I probably WILL do an "official" version of that at some point in the future, and I don't want you to be offended or feel like I'm pulling the rug out from under your hard work. Don't get me wrong, I try to keep people involved, and even if I do make something more official, I'll probably ask you to manage it (if you're still interested at that time) or otherwise help. Yet it's also entirely possible that I'll completely redesign the layout or look to better match the future site, thus "invalidating" a lot of work you've done.

Now, that said, if you're okay with that possibility, feel free to work on this and do it however you want for now. Ask me whatever you want, and I'll try and help you as best as I can too. One small note, I don't know if you're actually contacting site owners about this or not. I would suggest you should get people's permission (and possibly approval on banner/description) before putting them into this in any sort of finalized way. Don't worry about it while you're just testing and and working on it, but before you make it live, it needs to be an opt-in thing.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 13, 2007, 12:47:29 AM
Actually, I was planning on saying more than just "Xepher.Net" and more along the lines of a whole tagline like "Xepher.net Webcomics" or "Xepher.Net Artist Alley" etc. But I'll try to see how they'll look, which it might since it's planned as a "header".

And don;t worry about making something better. If this sort of things gets you inspired to do it yourself, go for it :P I just think I could boost visitors by putting some purty pictures along with the text ;) Some people don;t even realize this is a "Free Thinker" comminity as much as some sort of host service like Stormpages or something, though mysteriously without ads.

Once I get this banner exchange done, I'll be emailing everyone if they'd want to change their Banner (because I basically made all but like 2 banners ;) ) or their description. Then I'll ask that people place the iframe code in their Links section and/or their front page (purely voluntary, I'm not going to remove anyone from the list if they don't post it.... just means I won't feature or showcase it on the "Hub Page").


So yea, Just an ambitious project I have... while it's not really in my "authority", I get these ideas from time to time and run with it! But if end up making it obsolette or whatnot, do it ;) If you have ideas here and there after I get mine up, I'll see what I can do! :D I'm still a quite a ways from full completion.





Also, is there a uniform font size that won;t change between IE and Firefox? Everything I make look good for Firefox it like 1 whole point small on IE... : Conversely (right word?) Comixpedia is written for IE, so everything is one point BIGGER on Firefox :

I mean, visitors will have various browsers... can I tell the code to display the size in pixels instead? That's uniform right? All I know is < font size=3 > etc... and that means "Points" I believe.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 13, 2007, 02:02:13 AM
Don't specify scalable elements (such as fonts) in pixels, as a general rule. Image sizes are fine, because images ARE sized in pixels. Use font point sizes... in CSS, you should use the absolute length elements to do what you want. http://htmlhelp.com/reference/css/units.html#length If you were specifying anything BUT font, I'd suggest the "em" or "ex" unit, but since it's the font itself you want to be absolute, probably use "pt." The reason to use units like that, is that they'll scale for different display resolutions. If you say "12 pixels" it looks large enough to read on 800x600 maybe, but if someone has a 1920x1200 monitor (I'm about to buy one) it would be stupidly tiny and unreadable.

Hmm... thinking on that, and I think I see your problem. If the font scales at all, it's going to break stride (as it were) with the banner size. Generally speaking, is a really a big deal if one browser shows it a little bigger/smaller? Maybe make it with enough spare room that it doesn't visually break things if it's tweaked a tad. Keep in mind, if you use a font like Dragonwick, most people won't have it, so it won't show up for them anyway, and will look WAY different.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 13, 2007, 02:46:54 AM
Alrighty, I'll play with those settings then.

Well, What I do, since I know a lot of people DON'T browse with IE, I size everything to look nice at a maximum in Firefox. THAT way, when someone uses IE, it becomes smaller (instead of bigger) and does not mess up maximum set boundaries in line breaks, cells, tables and coordination with images.

And as far as cool fonts... I never uses them in plain text (unless you can force load them to viewers), because people just will not have them, then your site looks like crap because its the lame default font. So I always use images for cool fonts.




OOOO!!! OOOO!!!

Is there a way to detect the browser and then change the font size accordingly? Probably need cookies for that...  I've come this far to avoid cookies, and I'm not going to start :P.

MWAHAHAHAHAHA!

*goes back to chiseling in stone*
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 13, 2007, 05:34:08 AM
You don't need cookies, you can do it with PHP (or javascript) Google "user-agent headers" to see how to do it.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Desh on March 13, 2007, 07:42:43 PM
Hi, I don't have a Xepher account, though I want to help =)

I played with the html source from http://fesworks.xepher.net/Banners/Display.htm, specifically the page for Garnet.  However I didn't know what PHP source you were using so I couldn't play with that.

In regards to installing a webserver on your own computer for PHP testing, you can find some all-in-one installers which make it easy.  I use apache friends xampp (http://www.apachefriends.org/en/xampp.html); it's a combined installation of Apache with options for PHP 4 and 5, MYSQL, Filezilla FTP and Mercury Email.

For the special characters such as the wavy n and copyright, how are you entering them?  The ASCII codes seem to work: &#241; for the n and &#169; for the c.

Font sizes vary depending on browser due to default settings.  I think FF has a bigger default setting than IE.  If you set font size in em or pt like Xepher suggested it should be the same.

With cool fonts that no one has on their computer, in CSS font-family, you can specify a list of fonts for the browser.  Something like font-family: "Cool font", "Cool, yet common font", "Uncool font", general font-family;

The HTML source for the banner was messy, so I tried to clean it up, and ended up making it XHTML valid for some reason.  Stuff like the DOCTYPE, title, img alt, and meta tag aren't really needed for this, but make it valid.  Using CSS looks like a good idea though, as you can chop out all the tags.  (I added a space to the n ASCII to make it display in the code, remove it and it'll make the n)

  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



Xepher Free Thinkers Network




 
   
   
   
 
 
   
 
 
   
 

      PREV
   

      Xepher.Net Webcomics
   

      NEXT
   

      Banner for Garnet
   

    A dark, romantic story about a girl who, trying to save a man, follows a demon/vampire to another dimension and gets involved in a war between demons and humans. (Tambien en Espa&# 241ol )
   


I hope I've been helpful and not just random =)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: dragyn on March 13, 2007, 07:49:02 PM
Heh...just saw the banner you've got for Beastling.  Nice work, I may have to use that.  Any particular reason you chose that scene, though?

Anyway, I'm not at home right now, and I'd have to rework everything to fit it in, so I probably won't add it, even if you get it done.  Well, eventually, but not immediately.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 13, 2007, 08:35:24 PM
Thanks Desh! I'll try those character codes and see if that does it then!

Dragyn: I choose that scene because it was the clearest and most recent I could find a shot of beastling... and it seems like a good shot. Otherwise I was going to use a shot of his father, but I wanted Beastling for the Beastling banner. I had the hardest time finding the right thing for beastling, which is why the word "Beastling" takes up most of the banner :P The pencil sketching underneath was taken from the Chapter 2 title page and clone stamped.

Also, (If anyone else from the Xepher.NeT comics sees this thread), any banner that I have done, and you like it, and would like to use it: Consider it yours. All images are taken from the sites the represent.

So, Dragyn, consider it yours if you really want to use it. I don't need any credit, props, kudos, or anything :P


Adversely, if you want something different, feel free to send me a new 468x60 Banner then ;)
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 13, 2007, 09:05:27 PM
Heh... just realized I never answered you on the special characters thing.

Try these two, and tell me what you see.

http://xepher.xepher.net/unicode-test.html
http://xepher.xepher.net/unicode-test.php

The first is a .html file, saved as unicode-test.html.utf8 Adding the ".utf8" to the end makes apache send it with the correct character set.

The second file has nothing special done to it (other than being written in a unicode aware editor) and consists of the following code.




echo "This string is echoed from PHP: ©Ã'ñ®";

?>



This string is part of plain HTML: ©Ã'ñ®


The "special string" displayed should be a copyright symbol, a capital "N" with a wiggle over it, a small "n" with a wiggle, and the circle-R (registered trademark) symbol. It should appear the same in all cases. Let me know what does and doesn't work for you, and we can figure out where the problem is.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 13, 2007, 11:03:11 PM
Doing that "ñ" instead of "ñ" seemed to work just fine!
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 17, 2007, 01:20:19 AM
Uhg, Most of these guys have no e-mail address shown, so I'll br trying them at the "@xepher.net" account. :/

I contacted Pareidolia, and they are going to repost their archive. Other than that I am unsure if I'll get people to e-mail me back :

Well, I'm going to tackle the art sites next. I wanna make sure I have plenty of people in this banner exchange, etc, if I don't get respinces from the @Xepher.net accounts.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 17, 2007, 06:26:02 PM
Anyone with a phase two account is actually required to either check their email here, or to have forwarding set up to a valid account. This is both so that I can contact them if/when needed, and so that I don't have to deal with complaints about site-specific things as much. In the past, I've had random people complain about this or that shown on some site, and how they couldn't get a hold of the site owner, so they're demanding I do something about it.

Anyway, what I wanted to ask, would mind keeping a list of who you emailed, and who actually responded? When I get a firm date for the server move, I'm gonna be emailing everyone with a notice, and it'd be nice to compare my response list to yours... effectively being able to call this a second strike against them if they don't respond.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 17, 2007, 07:34:23 PM
I have not e-mailed them yet, but I'll try that within the next two days. I wanted to make sure i knew what I was going to say first.

also, some of them appear to be skimping on what should be shown in the Newsbox... But then again I show everything except one or two things I think (some just had the title, the location, and the donate link).... someone had a static code from 2004 :

I'll get you that list for the e-mail thing.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 17, 2007, 09:48:06 PM
Yeah, there's a lot of dead accounts. I've been quite lax in enforcing things. As noted over on the "new server" thread, a lot of the cruft is gonna get cleaned out with the move to the new server. I'm also thinking I'll write a script to watch for dead/empty sites or invalid newsboxes. Basically look and see if a site doesn't register a visit via the newsbox for 2 weeks or more. With the way things are set up it should be pretty easy... possibly even a single SQL query.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 17, 2007, 10:21:31 PM
I'm going through and making a comprehensive list of the entire directory. Expect a final document on Monday-ish.


EDIT:

and don;t give me that "You don't have to/shouldn't do that." It's cool. I need a comprehensive list for this project I'm doing anyway.... I also TOTALLY forgot about the Webmangas, now that I am going through the list!
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 17, 2007, 10:45:13 PM
No rush at all... I do appreciate it.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 18, 2007, 02:01:49 AM
Is the News Box invalid if it just looks like:

QuoteXEPHER . NET
Xepher.net > Art > Other > This Site

Visitors: ###  DONATE!
Also, there are a couple that have this and the "News" part in there. I would think to be valid it would need at least this (even sans the "Visitors" part), but at least the Directory Pull-Down menu.... at the very least.

Please clarify the required minimum.


also I'm up to "Kinjutsu"
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 18, 2007, 08:51:59 PM
Sadly, it is valid. As long as that code is being dynamically generated from the include, and not just static. You don't have a way to tell that though. I had hoped people would choose to show more of the optional parts, but didn't require it. For my own part though, I won't list a site as the featured site, unless they themselves show that section of the newsbox. Fair's fair. It occurs to me the part that says "Xepher.net" should maybe say "Hosted by Xepher.net" so people realize it's a hosting service, not just a link exchange or something, in case their interested in applying.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 19, 2007, 12:17:50 AM
Yea, I'd suggest that you change that (at least for new applicants). And, I would also ask (when you do the big e-mail thing) to ask that people at least include the Drop Down Menu, because it does not take up that much space.. but that's just what I feel. I have a custom list, but I have not kept up on it, and I'm going to turn it back to default. I don't like the announcements because they tend to be "bad" or unimportant to visitors (and more for the hostees).

Ok, well, knowing this I'll make adjustments to my documentations. A lot of people have what is  "Valid-Min". I've only seen one that was a static code... but that was was not updated since 2004 I think... I'll take a look. I think I'm done with all the Art sites.

Are all the sites listed in the directory Phase II? Some are missing the news box completely, and I know Phase I sites are not required to have it. Some I questioned if they are new sites. You should get a really nice list once I am done. I'll be going back and double checking them once I am finished too.

Anyway, I'm kinda having fun organizing this stuff :D
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 19, 2007, 02:45:39 AM
Ok, now I'm done with the comics. Just a few more after that. Then a double-check, then I'll be e-mailing you the results... I was using word.... do you prefer a particular format? I was going to mail it to your xepher@xepher.net account.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 19, 2007, 03:28:03 AM
admin@ would be prefered, I try to keep the hosting-related stuff there for easy searching at later dates.

The directory at http://xepher.net/index.php?page=users is Phase 2... on it, there's a link to Phase 1 users, but it's static code that hasn't been updated in years, so many accounts are gone. http://xepher.net/index.php?page=phase1users If you try a username and it just goes to the xepher.net front page, that means it no longer exists.

With the server migration, I'll be moving Phase 1 users (who are still active) into a database driven directory like the Phase 2 users. That's the side effect of requiring people to verify themselves via email, I can finally get all my data up to date.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 19, 2007, 05:46:55 PM
Phase II sites done... I wasn't planning on doing the Phase I sites though.

You should have an e-mail from me.... 10+ pages


The e-mail should be quite descriptive of how I documented each site (the newer sites might have been hard to spot properly for updates and content).

Any questions, just ask!
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Xepher on March 19, 2007, 09:18:32 PM
Got it, and used it already. I've had a little database trick watching for functioning newsbox hitcounters, anyone that hadn't recorded a hit in 2 days went into a list. I sorted out the accounts I'd already locked, and then the rest got compared with your notes. I locked 11 more sites, emailed 4 about fixing their newsbox, and deleted 2. That's all in phase 2. I haven't dealt with phase 1 yet either. I'm really thinking it's more dead accounts than alive, as such, I think I may just wait for the migration to sort it out. I only have to deal with the accounts that actually respond to the migration email. :-)

Thanks again for the list, I'll be comparing notes against it as people verify their accounts for the move.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 19, 2007, 10:39:14 PM
I'm guessing the two you deleted included the one that already said they were leaving Xepher, and the one that just said "Bork".

Anyway, I'm glad I could help out :D
Title: Need help on randomly displaying images w/ hyperlinks
Post by: Databits on March 20, 2007, 03:35:22 PM
I haven't really used my phase 1 account for a lot of anything recently. Haven't exactly had the time to work on anything really cool lately (despite paper document designs with my roommate on a game). Guess that's one of the disadvantages to writing code for a living, when you get the chance to get off the computer you take it happily. lol

Well that and silly things like the guide here, but that can be moved I suppose.
Title: Need help on randomly displaying images w/ hyperlinks
Post by: fesworks on March 25, 2007, 04:32:53 AM
Oh, the guy from http://inaccurate-perdition.xepher.net/ re-uploaded his comic archive recently. I've spoken to him via e-mail... told him about the new server and the migration abit. I'm trying to see if he has plans to update his site a bit more in the near future.