Author Topic: Links to external websites  (Read 6628 times)

0 Members and 1 Guest are viewing this topic.

Offline andyman

  • Pre-Newbie
  • Posts: 4
    • View Profile
Links to external websites
« on: September 11, 2007, 11:34:00 PM »
How do i put links to external websites in the bottom left column below random image column

Offline Art By Vicky

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • ABV Arts Enterprises
Re: Links to external websites
« Reply #1 on: November 05, 2007, 07:26:40 AM »
I'm not sure if you've already solved this or not, so I thought I'd give you an answer. 

Open: templates/default/home.html

Find: {endif random_image}

After: add your external links in html 
Example: <a href="http://www.external_link.com">Text for link</a>
If you want the external link to open in a new page: <a href="http://www.external_link.com" target="_blank">Text for link</a>

You can customize most screens in 4images by editing their corresponding template file.

Hope this helps!  Good luck!
ABVarts.com
RoundTableWebDesign.com
ArtByVicky.com
League of Animal Artists - AnimalArtists.org

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline flyfreak

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
    • Flyfreak.dk
Re: Links to external websites
« Reply #3 on: November 12, 2007, 07:26:21 PM »
Hey

How can i make a new page in 4images (with the same layout as my gallery)
I need it to make a faq page, (how to upload an image, m.m)

Please have a look at the screenshot
Emil
Main site: www.flyfreak.dk
4Images site: www.flyfreak.dk/foto

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: Links to external websites
« Reply #4 on: November 12, 2007, 07:37:09 PM »
How can i make a new page in 4images (with the same layout as my gallery)

FAQ -> http://www.4homepages.de/forum/index.php?topic=4996.0
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline Art By Vicky

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • ABV Arts Enterprises
Re: Links to external websites
« Reply #5 on: November 13, 2007, 05:50:57 AM »
There used to be a topic for this in the forum, but I can't seem to find it, so it may have been lost when the forum was hacked.

It depends on what type of custom page you're wanting to make.  For example, I created an help page for my members.

To create a custom generic page like this, do the following:

1) In the templates directory, copy the content of the home.html template

2) Create a new template file and name it whatever you want the file to be named (example: help.html) and paste the content of the home.html file into the new template file.

3) Customize the body content of the new HTML file with your new content. 

4) Then place a link in the appropriate base template where you want the link to that page to be found.  Example: I wanted the link to appear in the user box once members have logged in.  So, I added the URL to my new template into the user_logininfo.html template.  Now, once they've logged in, they have an additional link under their Profile link to my new help page.  You would use the following URL for the link:

Quote
http://www.yoursitename.com/your_gallery_dir/index.php?template=your_template_name

My URL looks like this: http://www.mysite.com/gallery/index.php?template=help

If you are wanting a custom category page, it is a little more work.  Try this:

1) Once you have created the category which you want to customize, go to Edit Categories in your ACP.

2) Place your cursor over the category title to be customized.  Look in the status bar at the bottom of your screen.  The URL for that category will appear.  Take note of the cat_id=# 4images issued to that category.

3) Go to your templates directory and copy the category.html template.

4) Create a new file in the templates directory and name it category#.html, where the # is the number of the category to be customized.  Example: I created a new category and 4images gave it cat_id=58, so I created a category58.html file to correspond to that category.

5) Paste the content of the category.html file into the new category file you've just created. 

6) Customize the new category template to your specifications.  Now, when someone clicks on that category in your gallery, they will get the new template.

You would also use this procedure to create custom member pages.  You would create a category for the member and create a new category template for the member's category.

I hope I've helped.  It's been a long time since I actually did this, so I hope I included all the steps.  Let me know how it works and if this is what you were looking for.
ABVarts.com
RoundTableWebDesign.com
ArtByVicky.com
League of Animal Artists - AnimalArtists.org

Offline bfarber

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Links to external websites
« Reply #6 on: January 26, 2009, 06:17:18 AM »
I'm not sure if you've already solved this or not, so I thought I'd give you an answer. 

Open: templates/default/home.html

Find: {endif random_image}

After: add your external links in html 
Example: <a href="http://www.external_link.com">Text for link</a>
If you want the external link to open in a new page: <a href="http://www.external_link.com" target="_blank">Text for link</a>

You can customize most screens in 4images by editing their corresponding template file.

Hope this helps!  Good luck!

Thank you very much for this little bit of information.  It really helps a novice like myself who knows just enough to be dangerous but recognizes the value of a backup 8)