Hi,
We've finally gone live with www.mvpages.com featuring some hacks, thumbshots from actual screenshots (not thumbshots.org) and other modifications.
Let me know what you guys think.
Thanks
Hi,
We've finally gone live with www.mvpages.com featuring some hacks, thumbshots from actual screenshots (not thumbshots.org) and other modifications.
Let me know what you guys think.
Thanks
Cool
:::::::: i like it
::: the main categories menu [ left ] ....... is it dynamic ? so when ever you add a main cat. it will apeare there automatically !
::: the small icon [ additional info ] nice idea but try to add more info to it so it can be more usefull
Hi,
Yep. The categories menu on the left is dynamic.
I will add more info to the 'i' icon on the listings.
Thanks
great site... well done
the dynamic menu on the left is awesome.... any tips for other indexu users?![]()
is it possible to konw how you did itOriginally Posted by asimov
![]()
as much as I think static pages are unnecessary from a performance point of view, I also dislike "dynamic" category menus ( assuming this menu is built using a SQL statement and not just javascript/css rollovers ).
Why would you want to dynamically create something that almost never changes every time you display the page? The main categories almost never change.
Even subcats hardly change. and if wasn't for showing the number of links for the subcats, they could be created once and then hardcoded into the HTML page. And if the subcats are in a similar type "menu" or you don't show the number of links, then they to could be hardcoded into the page.
Over the years I created several links sites. And while I was not all that good at it, once I created the categories and subcats, I almost never changed changed them. If I did, I just took an extra 30 seconds and copied/pasted one of the category lines and changed the ID and viola! the menu was updated.
OK, I'll get off my soap box...![]()
What the hey. You've got the computer power; why not create them dynamically.![]()
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Hi again,
Thanks for the comment, esm. That makes a lot of sense. Actually I did that in the very early days of my IndexU hacking (which of course was last month) just to know my way around the code.
For those of you who want to know: I created a method in categories class to get all top level categories. That's all. I can mail you the code if anyone wants it. Just mail me.
Currently, I'm working on a static HTML page generator for INDEXU. I've read the threads about Aladdin1's mod for this but I cannot afford it right now. So I thought, what the heck.
Cheers,
Hello,
looks really nice !!!
Tell us how you get the random page and all the thumbs ?!
Regards
Frank
I created the random link by instantiating a new links class object and setting the appropriate query like this in index.php:
Then I created a new template in msg.php to display it the way I want.Code:$rand_link_obj = new clsLink; $rand_link_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName); $rand_link_obj->query = "SELECT * FROM idx_link WHERE `suspended` = 0 ORDER BY RAND() LIMIT 1"; $rand_link_obj->max_rows = 1;//$main_hot_links; $rand_link_obj->template = $msg["20313"]; $rand_link_obj->enable_cache = false; $rand_link = $rand_link_obj->Display();
Then I passed the variable $rand_link to the DisplayTemplate method like so:
And in index.html place <%rand_link%> where you want it to appear.Code:DisplayTemplate($theme_path."index.html", "\$category,\$rand_link, ....
Also, you need to have $rand_link declared as a global somewhere in index.php.
That's it. I hope that helped.
Cheers,
![]()
Forgot one more thing. The thumbs were created by making a custom field in the database and creating the thumbnails of sites by hand.
It wasn't much work as we don't have a lot of websites in this tiny place.
Cheers,
Esm:
-----
i agree with you, but what i want is to learn how to deal with indexu code. to make usefull hacks out of it. Yes, I can use some java scripts & DHTML codes to create simillar menu.
asimov:
-------
PM....with my mail address
one way to learn as you suggest is to visit the Custom Hacks forum. Find a hack that interests you and try to recreate it without looking at hack itself. Some are easier than others so start with the easier ones.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Hi,
Just thought I'll let you guys know that my website is now fully XHTML 1.0 compliant.
Not that this is important but out of the box INDEXU generates very lousy HTML and it's good to have fixed the mess of it.
Check it out at :Validate at w3.org
Cheers,
I admit I know very little about "XHTML 1.0 compliant"but I sure would like to learn something
.
Can you give us any some tips on what you had to do to the INDEXU templates to make them "compliant?"
BTW, congrats on the "compliant" achievement and having a nice looking site.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Hi,
I've put up a tutorial at http://www.nicecoder.com/community/s...ead.php?t=2331.
I have read and let me know. BTW, the tutorial isn't specifically for indexu.
Cheers![]()