PDA

View Full Version : MODS??? how to change the look of your page


Anonymous
05-24-2005, 05:57 AM
I'm new at PHP and all the programing involved, I got the script working on my server, now I would like to make the page look like the rest of my site.
ALso I wanted to make all the links load to a new page (I'm using frames)
Is there a file on some basic instructions on "How to" or which files can be changed to accomplish some of the things above.

I really like this script, and if I can get it to work right I'll be more than glad to contribute a donation...after all it was free.

ANy help would be apprciated
Mario

Also I tried to register, but for some reason I never got the email to activate my username.

mariodac
05-24-2005, 06:07 AM
Ok it took a few minutes to receive the confirmation...but I'm now registred

Thank you
Mario

David
05-24-2005, 06:46 AM
Hello, welcome! :)
Look in the tmpl file and edit page_main.tpl to change the look of all the pages. For example, you can see where I recently changed the look on www.businessplexus.com (http://www.businessplexus.com).

On line 5 of view_link.tpl you should be able to change
http://%7BOUT_LINK%7D"]<B class="LinkTitle">{LINK_TITLE}[/b]

to
http://%7BOUT_LINK%7D"]<B class="LinkTitle">{LINK_TITLE}[/b]

and that should make the links open in a new window.
If you need more assistance, let me know. We are glad to help you. :)

mariodac
05-24-2005, 08:40 AM
Thanks for the VERY quick reply. I will try that later, (I'm at work now :roll: )

Just a few more questions:
Where do I go to change the option for Visual Confirmation and Reciprocal Link Checker

If I decide not to use the Reciprocal Link Checker how do I take out that field from the submit link

Thank you
Mario

mariodac
05-24-2005, 12:09 PM
Well, the changes to the page_main.tpl did not work except for the Submit Link page. The main page with all the links remains the same..I know I'm probably doing something wrong, I also edited the view_link.tpl and it does not work either. Any suggestions :oops:

Is there anymore pages to edit???

Thank you

David
05-24-2005, 04:44 PM
If you want to email me at david at david-duval.com I will be happy to take a look to see what you have. It is definitely page_main.tpl that needs to be edited.

mariodac
05-24-2005, 04:55 PM
David
Thanks for the reply. Been doing some digging (all trial and error :shock: )
Here is what I found out about the links -- and it works
Open this file
lib\smarty\plugins\modifier.linkalize.php

Find
function smarty_modifier_linkalize($url, $text, $target = '_top')
Replace with
function smarty_modifier_linkalize($url, $text, $target = '_blank')
And all your links will open in another window

For changing the look I also had to edit along with the one you suggested above
tpl\index.html

So I think I'm getting there

All I need to know now is where do I go to change the option for Visual Confirmation and Reciprocal Link Checker

Thank you
Mario

David
05-24-2005, 05:06 PM
Cool, glad you are figuring it out.

In conf.php, you should have these 2 lines:
$conf["VISUAL_CONFIRM"] = "1";
$conf["REQUIRE_RECIPROCAL"] = "1";

1=yes, 0=no
These settings are also configurable under admin > settings in the admin control panel. In version 2.0, there will be more options available overall, and we will use radio buttons, not 1 and 0. :oops:

mariodac
05-25-2005, 06:20 AM
David.
Again thank you for the reply.
For some reason when I installed the script to the database those lines "evaporated" Got it fixed and working like a champ.

This one is not a question, but a suggestion (I guess it's time to give instead of asking)

I know you guys are hard at work on the new version, so not sure if this is something you're aware or not, or if you're planing on implementing.

When someone submits a link there's no way to verify if the email is in the correct format or not. At this point any text will do to bypass the warning. I know that there's no way to verify if it's a "good" email, but if there was a format verification, it would prevent a lot of "Junk" from being submitted.

Just an idea...sorry if it means MORE work.
Take care, and thank you for all the help
Mario

David
05-25-2005, 06:48 AM
That should be pretty easy to validate the email. Most likely, this will be in v2. I am not doing all of the programming, so I am not sure, but I am confident v2 will be a lot cleaner (fewer little inconveniences/bugs). If you are still around when v2 is released, please help me remember to check for this.