Exporting News posts, URL BBcode not working

Discussion forum for MOD Writers regarding MOD Development.
spling44
Registered User
Posts: 3
Joined: Sun Apr 15, 2012 7:26 pm

Exporting News posts, URL BBcode not working

Postby spling44 » Sun Apr 15, 2012 7:27 pm

Support Request Template
What version of phpBB are you using? phpBB 3.0.10
What is your board's URL? http://rly.cc/forum
Who do you host your board with? Self
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
What styles do you currently have installed? SE_Square
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 4
What is your level of experience? New to PHP but not phpBB
When did your problem begin? Last night.
Please describe your problem. I've been successful in exporting the posts from my "news" forum onto the front page of my website (http://rly.cc/), however URL BBCode does not work correctly. Other BBCode such as i,b,u,size,color,quote,code are parsed correctly, but URLs are simply ignored and not passed onto the page.
Generated by SRT Generator

User avatar
tmbackoff
Former Team Member
Posts: 6996
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: Exporting News posts, URL BBcode not working

Postby tmbackoff » Sun Apr 15, 2012 8:11 pm

Moved from Support to MOD Writers Discussion.

How exactly are you "exporting" these posts? What does your code look like?

spling44
Registered User
Posts: 3
Joined: Sun Apr 15, 2012 7:26 pm

Re: Exporting News posts, URL BBcode not working

Postby spling44 » Sun Apr 15, 2012 8:13 pm

Woops sorry I forgot to include that.
http://pastebin.com/5f5Eskdb

Thanks for moving this to the correct section for me.

User avatar
tmbackoff
Former Team Member
Posts: 6996
Joined: Thu Jun 04, 2009 1:41 am
Location: cheerleading practice
Name: Tabitha Backoff

Re: Exporting News posts, URL BBcode not working

Postby tmbackoff » Sun Apr 15, 2012 8:33 pm

I'm not really sure to be honest. I don't see anything popping out at me that would cause that. Hopefully someone else will see something that I'm not. :D

spling44
Registered User
Posts: 3
Joined: Sun Apr 15, 2012 7:26 pm

Re: Exporting News posts, URL BBcode not working

Postby spling44 » Mon Apr 16, 2012 12:15 am

Hello, and thanks again for your help t_backoff.

Fortunately I was able to solve my problem. I found this page on the wiki: http://wiki.phpbb.com/Displaying_posts_ ... ied_topics and managed to find which pieces of code I needed to make my new export work.

For those interested, I had to add in

Code: Select all

   $user->session_begin();
   $user->setup('viewforum');


The full working code is now at http://pastebin.com/uBFi3Zcf if you're interested to view it. It's a lot cleaner too now that I got rid of some extraneous code that I was hoping would be related to my issue.

Yay!


Return to “[3.0.x] MOD Writers Discussion”

Who is online

Users browsing this forum: No registered users and 26 guests