Page 4 of 5 FirstFirst 12345 LastLast
Results 61 to 80 of 92

Thread: [Module] [4.0.x] Upcoming Events - Standalone version

  1. #61

    Default

    Never got his running but found this:

    http://www.vbulletin.org/forum/showthread.php?t=236402

    To us as a module drop the first line and the last two lines of the code.
    Save this as an php file (of course embedded in <?php ?>
    Then create a php file module in vBa CMPS.
    vBulletin 4.2.0

  2. #62

    Default

    Hi Tom M
    Thanks for this great mod. It works well on vB4.1.2

    I added the code provided by Neverstop to parse the BB code and that works as well. However I decided for my needs I prefer it the way you originally made it as its much more compact.

    The thing is some of the entries have BB code in them such as - [SIZE="3"][B][COLOR="Red"] etc

    Is there a way to make it so the BB code mark up does not show?
    Thanks for your help…

  3. #63

    Default

    Do you have a link?

    It sounds like your event entries have the bbcode in them and if that's the case then you would need to make it so that the event entry wouldn't accept that as the module just passes along the text. At least that's my recollection on how it works. It's been so long since I've changed anything I'd really have to dig back in to it.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  4. #64

    Default

    I don't have it on a live site yet, just on my test installation on my computer. I am yet to upgrade the live site to vB4

    Yes the members are able to use BBcode, they like to change the colors and make things bold etc.

    I found the code below on the net but as I know nothing about php I don't know where to put it in your upcomingevents.php file or even if its correct for that file.

    Code:
    function stripBBCode($eventinfo) { $pattern = '|[[\/\!]*?[^\[\]]*?]|si'; $replace = ''; return preg_replace($pattern, $replace, $eventinfo);}
    Can you help with this?

  5. #65

    Default

    You could probably call the function right before the final assignment
    PHP Code:
    $home[$mods['modid']]['content'] = $upcomingevents
    By doing something like
    PHP Code:
    $upcomingevents stripBBCode($upcomingevents);
    $home[$mods['modid']]['content'] = $upcomingevents
    Of course you also need to add the function someplace.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  6. #66

    Default

    Excellent – works a treat..!!

    Just to summarise for anyone else interested…..

    I put the following code at the start of the 'upcomingevents.php' file under the commented out lines:

    Code:
    function stripBBCode($upcomingevents) { $pattern = '|[[\/\!]*?[^\[\]]*?]|si'; $replace = ''; return preg_replace($pattern, $replace, $upcomingevents);}
    Then, as you said to do in your post above, I found this around line 380:
    Code:
    $home[$mods['modid']]['content'] = $upcomingevents;
    And I put this above it:
    Code:
    $upcomingevents = stripBBCode($upcomingevents);
    Thanks so much for your help…

  7. #67

    Default

    Glad you got it all sorted.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  8. #68

    Default

    Hi Tom, any idea how i can run 2 blocks pulling info from 2 different calendars?

    Thanks

  9. #69

    Default

    Quote Originally Posted by zapiy View Post
    Hi Tom, any idea how i can run 2 blocks pulling info from 2 different calendars?

    Thanks
    If you want separate blocks you should just be able to create the additional ones and have them use the calendar you want. If you wanted only some calendars in a single display that would be hard as it's either one or all per block.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  10. #70

    Default

    Well i have2 calendars

    1) is for 360 game nights
    2) is for ps3 game nights

    I have one block pulling info from the 360 calendar

    When i add a ps3 block pulling info from the ps3 calendar my site just goes to a white screen...

    Once i disable it again then the site works fine.

    Any advice please?

    Jamie

  11. #71

    Default

    Are you using a custom skin? Does it validate?

    The module works and others are running multiple instances so a bit more information may help. Do you have a link?
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  12. #72

    Default

    www.maturevideogamer.co.uk

    I am running a custom theme..

    Validate?

  13. #73

    Default

    Most of the errors seem pretty benign...

    http://validator.w3.org/check?uri=ht...Inline&group=0

    You might try it with the default vb theme to see if you run into the same problem. If that works then you can be pretty sure it's related to something in your custom template.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  14. #74

    Default

    ok cheers i will try it and get back to you?

  15. #75

    Default

    Still the same using the default theme?

  16. #76

    Default

    Quote Originally Posted by zapiy View Post
    Still the same using the default theme?
    I'm on the road at the moment and no real ideas. I'll think about it some more when I get back home.
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  17. #77

    Default

    I read the whole thread and i tried everything but can't get this module working!

    It keeps displaying: There are no events scheduled within the next 30 days.

    Can somebody help me?

  18. #78

    Default

    It's most likely a permissions issue. Do you have a link?
    Tom Morris
    Porsche Boxster discussion forum.
    Today's Conservative discussion forum.

  19. #79

    Default

    Quote Originally Posted by Tom M View Post
    I'm on the road at the moment and no real ideas. I'll think about it some more when I get back home.
    Cheers Tom, that would be great..

  20. #80

    Default

    I just ran into the same problem as posted above, it displays: There are no events scheduled within the next 30 days.

    Did you solve your issue, and how?

    www.carscene.ca

    Thanks

Page 4 of 5 FirstFirst 12345 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Module] Upcoming Events - Standalone Version
    By Tom M in forum Add-On Modules (version 3.x & 2.x)
    Replies: 382
    Last Post: 07-30-2012, 03:52 PM
  2. [Module] [3.8.1] Upcoming Events - Standalone version
    By Tom M in forum Add-On Modules (version 3.x & 2.x)
    Replies: 52
    Last Post: 08-03-2011, 11:12 PM
  3. [Module] Upcoming Events - Modified Version + Custom Eventfields
    By academyofsocialarts in forum Add-On Modules (version 3.x & 2.x)
    Replies: 12
    Last Post: 05-14-2008, 09:44 PM
  4. [Module] Upcoming Events - Standalone Version
    By Tom M in forum Add-On Modules (version 3.x & 2.x)
    Replies: 131
    Last Post: 09-06-2007, 06:45 PM
  5. REQ: Upcoming events module
    By MotoUp in forum Module & Modification Discussion & Requests
    Replies: 36
    Last Post: 08-06-2005, 10:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •