Jump to content

forumdev99

Clients
  • Posts

    81
  • Joined

  • Last visited

Reputation Activity

  1. Like
    forumdev99 got a reaction from onlyME in Featured Content for IPS4.x+   
    problem solved - thanks for the quick support!
  2. Like
    forumdev99 got a reaction from trananhls in IPS 4.1 : ADVERTISEMENT inside the first post   
    This is working well - thanks for all the help @Upgradeovec 
    I ended up struggling to get the ad block to float to the right of the post content like i wanted it to - so that it isn't above or below the post text (unless on a small screen).
    float:right; didn't seem to work like it should, so I ended up w/ the below code which is the closest I could get to what I want.
    Please share if anyone has a better way of doing this.
    my code:
    <!-- adsense ad code in first post start --> {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} <div style="display:inline-block;float:right; max-width:336px;"> <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-00000000000" data-ad-slot="00000000000"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div style="display:inline-block;max-width:50%;"> {{endif}} <!-- this is the post content --> {$comment->content()|raw} {{if $comment->editLine()}} {$comment->editLine()|raw} {{endif}} {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} </div> {{endif}} <!-- adsense ad code in first post end -->  
    Thanks
     
  3. Like
    forumdev99 got a reaction from media in IPS 4.1 : ADVERTISEMENT inside the first post   
    This is working well - thanks for all the help @Upgradeovec 
    I ended up struggling to get the ad block to float to the right of the post content like i wanted it to - so that it isn't above or below the post text (unless on a small screen).
    float:right; didn't seem to work like it should, so I ended up w/ the below code which is the closest I could get to what I want.
    Please share if anyone has a better way of doing this.
    my code:
    <!-- adsense ad code in first post start --> {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} <div style="display:inline-block;float:right; max-width:336px;"> <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-00000000000" data-ad-slot="00000000000"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div style="display:inline-block;max-width:50%;"> {{endif}} <!-- this is the post content --> {$comment->content()|raw} {{if $comment->editLine()}} {$comment->editLine()|raw} {{endif}} {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} </div> {{endif}} <!-- adsense ad code in first post end -->  
    Thanks
     
  4. Like
    forumdev99 got a reaction from Numbered in IPS 4.1 : ADVERTISEMENT inside the first post   
    This is working well - thanks for all the help @Upgradeovec 
    I ended up struggling to get the ad block to float to the right of the post content like i wanted it to - so that it isn't above or below the post text (unless on a small screen).
    float:right; didn't seem to work like it should, so I ended up w/ the below code which is the closest I could get to what I want.
    Please share if anyone has a better way of doing this.
    my code:
    <!-- adsense ad code in first post start --> {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} <div style="display:inline-block;float:right; max-width:336px;"> <ins class="adsbygoogle" style="display:inline-block;width:336px;height:280px" data-ad-client="ca-pub-00000000000" data-ad-slot="00000000000"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> <div style="display:inline-block;max-width:50%;"> {{endif}} <!-- this is the post content --> {$comment->content()|raw} {{if $comment->editLine()}} {$comment->editLine()|raw} {{endif}} {{if (($comment->position - 1) % \IPS\Settings::i()->forums_posts_per_page === 0)}} </div> {{endif}} <!-- adsense ad code in first post end -->  
    Thanks
     
  5. Like
    forumdev99 reacted to AlexWright in Error with furl changes   
    Here's hoping this is fixed in 4.3...
  6. Like
    forumdev99 reacted to media in IPS 4.1 : ADVERTISEMENT inside the first post   
    Anyone?
  7. Like
    forumdev99 reacted to AlexWright in Error with furl changes   
    The issue here is the top-level portion of this, the "topLevel": "forums", bit will always be included in any URL while inside of the Forums app. I do not believe this part can be changed while this current bug persists.
     
    Edit: On 2nd thought, this might be able to be done by using the "Rules" and "URL Paths" addons:
     
     
     
    You would probably be able to do this with these two applications. There is an APA-Lite, but that only supports up to 25 URLs IIRC.
  8. Like
    forumdev99 reacted to AlexWright in Error with furl changes   
    Ok so I've found a way around this, but it's more for advanced users. @forumdev99, this should work for you:
    For FORUMS: Find the folder public_html/applications/forums/
    Open up the furl.json in your chosen editor (I use Brackets). Inside this file, you should find the following code:
    /** * Friendly URL Structure * * For each value in the $furl array: * The key should be the "SEO Template" - an identifier which you'll use when displaying a URL. * The value should be an associative array with two or three elements: 'friendly' and 'real', and optionally 'verify': * 'friendly' * The friendly URL to use - encase variables in {curly braces} containing a symbol, followed by the name of the parameter that matches in the "real" URL * The symbol should be # for numbers or @ for strings * For example, if the "real" URL contains id=XXX, where XXX is a number, you should include {#id} somewhere in the friendly URL. * You can also use the tag {?} for the "SEO Title" (that is, any variables that shouldn't be part of the real URL, such as the name of the topipc being viewed). * If you want to support more than one SEO Title, you can give them zero-indexed keys like so: {?0} {?1} {?2} * 'real' * This should be the base of the real URL. You should not include parameters which will be parsed out from the friendly URL. * 'verify' * This should be the name of a class that contains a loadFromUrl() and an url() method. The dynamic URL (i.e. app=core&...) will be passed to loadFromUrl(), and the url() * method will subsequently be called to retrieve the correct URL, ideal with ActiveRecord pattern classes. * * IMPORTANT: Ensure values are listed with the most specific ones first. This is to ensure that non-FURL redirects are done correctly. For example, if you have these FURLs: * /index.php?app=myapp&module=mymodule&controller=mycontroller&do=myaction -> /myfolder/myaction * /index.php?app=myapp&module=mymodule&controller=mycontroller -> /myfolder * They must be provided in that order, otherwise the former will redirec to /myfolder/?do=myaction rather than /myfolder/myaction */ { "topLevel": "forums", "pages": { "forums_rss": { "friendly": "forum/{#id}-{?}.xml", "real": "app=forums&module=forums&controller=forums&rss=1" }, "forums_forum": { "friendly": "forum/{#id}-{?}", "real": "app=forums&module=forums&controller=forums", "verify": "\\IPS\\forums\\Forum" }, "topic_copy": { "friendly": "topic/{#id}-{?}/copy", "real": "app=cms&module=database&controller=topic" }, "forums_topic": { "friendly": "topic/{#id}-{?}", "real": "app=forums&module=forums&controller=topic", "verify": "\\IPS\\forums\\Topic" }, "forums": { "friendly": "", "real": "app=forums&module=forums&controller=index" }, "topic_create": { "friendly": "submit", "real": "app=forums&module=forums&controller=forums&do=createMenu" }, "topic_non_forum_add_button": { "friendly": "startTopic", "real": "app=forums&module=forums&controller=forums&do=add" } } } The things to change here would be the "friendly" parts. For instance, to change it from yoursite.com/forums/ to yoursite.com/forum/, replace "topLevel": "forum".
    This is in the same location for -all- installed applications. After reuploading the file to the same place, you will need to run "Something isn't working" in your "System -> Support" page. After that, you can edit or install language files to deal with the rest of it.
     
    Regards
  9. Like
    forumdev99 reacted to EricT in Error with furl changes   
    @Daniel F Is there any ETA for this issue ?
    Why this issue is not anymore on the bug tracker ?
    Thank you
  10. Like
    forumdev99 reacted to Durango in Error with furl changes   
    All right !
    Hi @Daniel F 
    any idea when you will fix this bug ?
    Tx a lot
  11. Like
    forumdev99 got a reaction from media in IPS 4.1 : ADVERTISEMENT inside the first post   
    I found the location in the templates for where to put the ad code to appear inside of the post, I just need the if/then statement syntax to limit it to only appear in the first post, instead of all posts.
    Open this template:
    Forums > Front > Topics > post
    ..and put your code right after this tags:
    <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> [your ad code here use style="float:right;"] Can anyone suggest the code I would use to limit this to display only in the first post?
  12. Like
    forumdev99 got a reaction from marklcfc in IPS 4.1 : ADVERTISEMENT inside the first post   
    I found the location in the templates for where to put the ad code to appear inside of the post, I just need the if/then statement syntax to limit it to only appear in the first post, instead of all posts.
    Open this template:
    Forums > Front > Topics > post
    ..and put your code right after this tags:
    <div data-role='commentContent' itemprop='text' class='ipsType_normal ipsType_richText ipsContained' data-controller='core.front.core.lightboxedImages'> [your ad code here use style="float:right;"] Can anyone suggest the code I would use to limit this to display only in the first post?
×
×
  • Create New...