Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 202
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 173
Total: 173

Author Topic: Creating Ad Locations on Gallery  (Read 3538 times)

0 Members and 1 Guest are viewing this topic.

Offline Jonas1975

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
    • The Mobile Photography Blog
Creating Ad Locations on Gallery
« on: September 12, 2014, 03:46:46 pm »
I wanted to create new Ad locations on the Gallery Pro mod where I think they will fit better than the locations pre-defined on Ad Seller Pro (all the existing locations on the Gallery look to me awkward or not "pretty").

The locations would be between the block of Top Rated, Most Viewed, etc and the Gallery Categories and, while viewing pictures, between the picture and the comments. I attached some images to better visualization.

I need help to understand the steps to implement this.

Offline Jonas1975

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
    • The Mobile Photography Blog
Re: Creating Ad Locations on Gallery
« Reply #1 on: September 13, 2014, 03:05:24 am »
Other option that I would want was to make the overall header/footer be have visibility options for actions too, so I could isolate it and make it show, for example, only on the gallery. Better, if I could isolate the different areas of the gallery like Main View, Viewing Categories (including most recent, top rated, etc) and viewing a picture.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Creating Ad Locations on Gallery
« Reply #2 on: September 13, 2014, 03:06:03 pm »
First one would be in gallery2.template.php
Find
Code: [Select]
//Show the index page blocks
if ($modSettings['gallery_index_showtop'])
{
// Recent
if (!empty($modSettings['gallery_index_recent']))
MainPageBlock($txt['gallery_main_recent'], 'recent');
// Most Viewed
if (!empty($modSettings['gallery_index_mostviewed']))
MainPageBlock($txt['gallery_main_viewed'], 'viewed');
// Most commented images
if (!empty($modSettings['gallery_index_mostcomments']))
MainPageBlock($txt['gallery_main_mostcomments'], 'mostcomments');
// Top Rated
if (!empty($modSettings['gallery_index_toprated']))
MainPageBlock($txt['gallery_main_toprated'], 'toprated');
// Recent Comments
if (!empty($gallerySettings['gallery_index_recentcomments']))
MainPageBlock($txt['gallery_main_recentcomment'], 'recentcomments');
// Random
if (!empty($gallerySettings['gallery_index_randomimages']))
MainPageBlock($txt['gallery_main_random'], 'random');

if (!empty($gallerySettings['gallery_index_show_tag_cloud']))
Gallery_ShowTagCloud();


Then add the ad location code after




For the picture location it would be
Before this code
Code: [Select]

// Show Related Images
if (!empty($gallerySettings['gallery_set_relatedimagescount']))
{
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4398 Views
Last post January 17, 2007, 12:35:17 am
by SBB
1 Replies
3015 Views
Last post March 16, 2007, 05:58:14 pm
by SMFHacks
4 Replies
7172 Views
Last post July 17, 2007, 06:52:15 pm
by SMFHacks
1 Replies
3508 Views
Last post September 28, 2008, 11:17:32 am
by SMFHacks
0 Replies
2451 Views
Last post October 24, 2014, 01:33:24 am
by shuban

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal