[BETA] - The Blog Mod

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Mon Aug 21, 2006 8:58 am

Hey everyone, i have been away for some time now. I am back, but only in limited fashion.

I have a lot of updates to add to this MOD, and I hope to get it done and published very soon.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: spode » Mon Aug 21, 2006 2:09 pm

"Dragonsys";p="13890" wrote:Which link are you meaning? The My Blog link or the Blog CP, or the Blog listing?


The My Blog link. The other 2 work fine since they are direct links. The problem is that when I add a link to the navigation block that calls the "{U_MYWEBLOG}" variable there is no output and it goes to a non existant page. I am using this line in an html Navigation block; <a>My Blog</a>.

When you hold the mouse over the link on the suspect site it returns this [color=red]http]. When I hold the mouse over my stock phpBB2 install on my local server I get this, [color=red]http]. It looks like the live site with IM Portal installed doesn't know what to do with the variable. I just can't figure out how to get it to work in the nav block. It would be easier for me to put it in the overall_header but he doesn't want it there. By the way my statement above that this site has Qbar installed is wrong. That was another site but I couldn't get it to work there either.

This probably isn't that big of a deal. I did explain to him that when you click the "Blogs" link the first one listed is always the loged in user so he has backed off on it a bit. It is just one of those things.

Rob...
Last edited by spode on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://spodesites.net/pub/images/spodelgbannera.gif[/img]

spode
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 03, 2006 6:59 am
Cash on hand: 0.00

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Tue Aug 22, 2006 7:43 am

"spode";p="13896" wrote:
"Dragonsys";p="13890" wrote:Which link are you meaning? The My Blog link or the Blog CP, or the Blog listing?


The My Blog link. The other 2 work fine since they are direct links. The problem is that when I add a link to the navigation block that calls the "{U_MYWEBLOG}" variable there is no output and it goes to a non existant page. I am using this line in an html Navigation block; <a>My Blog</a>.

When you hold the mouse over the link on the suspect site it returns this [color=red]http]. When I hold the mouse over my stock phpBB2 install on my local server I get this, [color=red]http]. It looks like the live site with IM Portal installed doesn't know what to do with the variable. I just can't figure out how to get it to work in the nav block. It would be easier for me to put it in the overall_header but he doesn't want it there. By the way my statement above that this site has Qbar installed is wrong. That was another site but I couldn't get it to work there either.

This probably isn't that big of a deal. I did explain to him that when you click the "Blogs" link the first one listed is always the loged in user so he has backed off on it a bit. It is just one of those things.

Rob...


Well, if you are using QBAR, it cannot process dynamic links. That is why I created a page which forwards to the My Blog link, for use with IntegraMod. You just link to that page and it has the code inside of it to figure out the user's blog link.

I can make the code available for it, or you can download the IM version of the Blog Mod I posted above, which ever works best for you. But, if you are just using IM Portal, then you probably don't want to use the IM version... (just use the myblog.php and myblog.tpl files)
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: spode » Tue Aug 22, 2006 2:33 pm

"Dragonsys";p="13890" wrote:

Well, if you are using QBAR, it cannot process dynamic links. That is why I created a page which forwards to the My Blog link, for use with IntegraMod. You just link to that page and it has the code inside of it to figure out the user's blog link.

I can make the code available for it, or you can download the IM version of the Blog Mod I posted above, which ever works best for you. But, if you are just using IM Portal, then you probably don't want to use the IM version... (just use the myblog.php and myblog.tpl files)


I actually downloaded the IM version last night and installed a copy of Integramod then your Blog mod for IM to see how it works. I actually couldn't get it to work there either. I then realized that the "myblog.php file does not appear to be in the archive. It is a clever way to work around the situation and I will see if I can figure out the code when I get home tonight. If you would like to post it here that would be fine also. I learn about the same from going through someones elses code as I do trying to create it myself, it is just allot quicker if I use yours. <img>

Thanks for the help,
Rob...
Last edited by spode on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://spodesites.net/pub/images/spodelgbannera.gif[/img]

spode
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 03, 2006 6:59 am
Cash on hand: 0.00

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Tue Aug 22, 2006 6:28 pm

hmmm, I will have to check the download file...

Here is the code


myblog.php:
Code: Select all
<php>set_filenames(array(         'body' => 'myblog.tpl') );        function my_blog_func()    {        global $template, $userdata, $phpbb_root_path, $phpEx, $db, $board_config, $lang, $portal_config, $_GET;      $template->assign_vars(array(    'YOUR_BLOG' => $userdata['user_weblog']    )    );        } my_blog_func();  $template->pparse('body');  include($phpbb_root_path . 'includes/page_tail.'.$phpEx); ?>


templates/xxx/myblog.tpl]  <head><META></head><body><p> </p><p> </p><center><h1>Now loading your My Blog page</h1></center></body>[/code]
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: spode » Tue Aug 22, 2006 8:03 pm

Thanks Dragonsys. It is nice to know that there are bright people out there to help keep me from looking totally lost all of the time. I had the Meta refresh basically correct but I was barking completely up the wrong tree on the php file. I was going to try to integrate the blogs into the forums but he actually prefers that they are separate the way the original mod was written. Regardless, he is happy and that is waht I was after. Actually this will come in handy in the future I am sure. Nice to know that you can get this sort of thing working in Qbar if you need to. <img>

This is a nice simple yet elegant fix that works perfectly. I really appreciate the help.

Thanks again,
Rob...
Last edited by spode on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[img=left]http://spodesites.net/pub/images/spodelgbannera.gif[/img]

spode
Newbie
Newbie
 
Posts: 12
Likes: 0 post
Liked in: 0 post
Joined: Mon Jul 03, 2006 6:59 am
Cash on hand: 0.00

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Tue Aug 22, 2006 8:04 pm

glad I could help <img>
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PostAuthor: MWE_001 » Wed Sep 13, 2006 6:16 pm

I tried this yet again and it didnt work. Maybe should I try it on my CP for my website rather than phpmyadmin on my board?

***Update. I went to phpmyadmin at my websites Control panel and looked up the tables for user_allowweblog=1 and the value is infact 1 and not 0 is this correct?
"Threat009";p="9789" wrote:
"Dragonsys";p="9750" wrote:it sounds like you missed an edit in templates/fisubice/admin/group_edit_body.tpl

That did the trick. Thanks <img>

Just wanted to also mention in regard to the &quot;you have been banned from creating a blog&quot; error. The sql thing below that you mentioned worked for me

Code: Select all
UPDATE phpbb_users SET user_allowweblog=1 WHERE user_allowweblog=0;


I read that someone else didn't have any luck w/it, but it's still worth trying if you are getting this error. <!-- s]
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1280
Likes: 3 posts
Liked in: 2 posts
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 95.10
Location: Illinois

PostAuthor: Dragonsys » Thu Sep 14, 2006 6:23 am

"MWE_001";p="15406" wrote:I tried this yet again and it didnt work. Maybe should I try it on my CP for my website rather than phpmyadmin on my board?

***Update. I went to phpmyadmin at my websites Control panel and looked up the tables for user_allowweblog=1 and the value is infact 1 and not 0 is this correct?
"Threat009";p="9789" wrote:
"Dragonsys";p="9750" wrote:it sounds like you missed an edit in templates/fisubice/admin/group_edit_body.tpl

That did the trick. Thanks <img>

Just wanted to also mention in regard to the &quot;you have been banned from creating a blog&quot; error. The sql thing below that you mentioned worked for me

Code: Select all
UPDATE phpbb_users SET user_allowweblog=1 WHERE user_allowweblog=0;


I read that someone else didn't have any luck w/it, but it's still worth trying if you are getting this error. <!-- s]


hmmmmm...

Ok, I am doing some testing. I have created another site, and I'm playing with The Blog Mod and IM to make sure I have everything covered for it. Let me see if I can reproduce this...
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: MWE_001 » Sun Sep 17, 2006 3:31 am

Ok I will stand by . I read one other person got it to work. I wonder server specs. I can get you mine if you need. Also can get you IM version and blog mod is your latest one.
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1280
Likes: 3 posts
Liked in: 2 posts
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 95.10
Location: Illinois

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Mon Sep 18, 2006 6:10 am

"MWE_001";p="15536" wrote:Ok I will stand by . I read one other person got it to work. I wonder server specs. I can get you mine if you need. Also can get you IM version and blog mod is your latest one.


What is your IM version?
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: MWE_001 » Mon Sep 18, 2006 11:28 am

1.4.0 Integramod Im not using IM portal but the whole package.
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1280
Likes: 3 posts
Liked in: 2 posts
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 95.10
Location: Illinois

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Mon Sep 18, 2006 12:17 pm

ok, well so far, I have found a few minor errors in the Install Docs, nothing which really cause problems, just a few duplicate instructions and such. I think I MIGHT have found a couple of missing items, and I am correcting that now.

I should know more soon. I'll keep you updated.

After I get all this sorted out, I will apply the latest patches and security fixes to the mod as well. I am also working on creating a couple of enhancements and add-ons which severl people have been asking for over at theblogmod.com.
Last edited by Dragonsys on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

Re: [BETA] - The Blog Mod

PostAuthor: MWE_001 » Mon Sep 18, 2006 12:42 pm

ok. Ill be on the look out thx Dragonsys
Last edited by MWE_001 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Don't gain the world and lose your soul, wisdom is better than silver and gold" -Bob Marley

If you build it, I can break it! ~ Whispered in the tone of the movie Field of Dreams.
User avatar
MWE_001
Sr Integra Member
Sr Integra Member
 
Posts: 1280
Likes: 3 posts
Liked in: 2 posts
Joined: Fri Apr 21, 2006 7:59 pm
Cash on hand: 95.10
Location: Illinois

Re: [BETA] - The Blog Mod

PostAuthor: Dragonsys » Tue Sep 19, 2006 2:09 pm

ok, I have it fully installed on my test board (http://beta.dragonsys.org/im_test). Now I just need to do testing. I'm going to setup the configuration tonight, so if anyone wants to help me test it.... I will create a few test accounts as well and post the info here.

Here is what I have found so far:
  • Remove Duplicate Permissions info from Install Doc (Completed)
  • Add version checker (Completed)
  • Correct [ FIND ] in admin_groups.php (Completed)
  • Correct [ FIND ] in page_header.php (Completed)
  • Correct 2nd lang_admin.php to lang_main.php (Completed)
  • Move Edits for index_body.tpl to an Optional Section (Completed)
  • Add myblog link files to the download (Completed)
  • Update pre-modded files to phpBB v2.0.21 (Completed)
  • Create a clear upgrade path
  • Make corrections to dp_update.php (Completed)

I have also found a bug.. sorta
after the block variables have ben added to the DB, if you upload the block .cfg file again (so the timestamp on it updates) then they will be added to the DB again, causing duplicates. They will re-add everytime the timestamp on that file changes.
Last edited by Dragonsys on Wed Sep 20, 2006 9:40 am, edited 1 time in total.
Image
User avatar
Dragonsys
Sr Integra Member
Sr Integra Member
 
Posts: 326
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 7:45 am
Cash on hand: 0.00
Location: Springtown, TX

PreviousNext

Return to Mods/Hacks

Who is online

Registered users: Google [Bot], Unspecified Bot