Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
CodyG
Life Cycles Becoming CPU Cycles


Joined: Jan 02, 2003
Posts: 712
Location: Vancouver Island

PostPosted: Mon Apr 24, 2006 7:11 am Reply with quote

One of the things that has always driven me a little crazy about the Weblinks module/Block is that getting to the linked page or site is not easy for my newbie users.

1. See link in block. Click link, expecting that link to open.
2. Get sent to WebLinks module and find way too much complexity about rating the link. (ie: I haven't even seen the link page yet.)
3. Hunt for the actual link to the website.
4. Miss the link "Visit This Website" and send a nasty message to Sysop about the silliness of it all.

I'd like a block that displays 10 random links and when the link is clicked the user is actually sent to the link, not to the complexity of the Weblinks module.

Has anyone done this? If so, would you care to share the code? If not, is it possible?


Have a Happy Nuking Day.

_________________
"We want to see if life is ubiquitous." D.Goldin 
View user's profile Send private message
CodyG
PostPosted: Mon Apr 24, 2006 7:24 am Reply with quote

So I just answered my own question ... Yes, it's possible and doing it was too easy!

Make a copy of block-WebLinks.php and call it something else, like block-VisitLinks.php
Then, in line 32 (the $content line) change the string viewlinkdetails to visit ...
Like this:

Code:
    $content .= "<strong><big>&middot;</big></strong>&nbsp;$a: <a href=\"modules.php?name=Web_Links&amp;l_op=visit&amp;lid=$lid&amp;ttitle=$title\">$title2</a>


Now I'll figure out the random thing and I'll post the whole block when I do.
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Tue Apr 25, 2006 6:29 am Reply with quote

:clap:

I have always hated that module... well, and the core nuke Downloads module, and the _____ and the _____ Laughing

CodyG, thanks for sharing this info. Good stuff!

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©