vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   vBulletin Blog - Blog Customization (https://vborg.vbsupport.ru/showthread.php?t=162470)

Kentaurus 11-10-2007 10:00 PM

Blog Customization
 
Tested with vb 3.6.8 and blog 1.0.2

*Requires the Vbulletin Blog product.

This hack extends the blog functionality by letting the users manage, in a limited way, their "styles".
They'll be able to choose a background color, color for the entries and the titles, and reorder the panels in the blog in any way they want.

Instead of all looking the same, with this hack the users have LIMITED control over their blogs.

Key functionality
  • User may create "styles", as many as they want. A style consist in a background, header, second header, first and second alternating color
  • User can select a style for his blog, the style is used immediately
  • User can reorder the position of: "user info", "search", "calendar", "options", "last comments" and "categories"
Installation Instructions

See the included readme.txt

Changelog

1.0.2 (Upgrade instructions: reupload includes/functions_blog_customize.php)
  • Bug fix: Guests couldn't see the custom styles
  • Bug fix: Only the owner could see his style, visitors and other users saw the default
1.0.1 (Upgrade instructions: reupload the files in the "upload" directory and reimport the xml for the product)
  • Fixed bug where, when "transparent" is selected, or an empty color, the message "The color is not valid" is displayed to the user
  • Fixed a bug where, the icon for transparent and switch wasn't shown
  • When the color is not valid, the detailed color that was not valid shown (this is for security, so your css only contains valid colors)
1.0.0
  • First release
Info for hackers:
You may modify, improve, upgrade, redistribute this hack, include it
in another hack or yours or translate it provided you do it free of
charge and you distribute it in www.vbulletin.org at least, there is no
need to pm me asking for permission
Some portions of the code are (c) Jelsoft Enterprises Ltd.

compact123 11-11-2007 09:15 PM

Ohh very cool

thanksss

Silvio 11-11-2007 10:05 PM

very nice - good job i'll try it.

take care - thank you

ciao

yoyoyoyo 11-11-2007 10:42 PM

thanks much!

Here is a TMS (Template Modification System) XML file with all of the edits, for those that have TMS installed.

jasculs 11-11-2007 11:42 PM

How did you test it with vbulletin 3.6.4? I thought the blog would only work with 3.6.8.

Kentaurus 11-11-2007 11:58 PM

That's a typo. Changed to 3.6.8

edenx 11-12-2007 12:19 AM

Excellent mod !

Are new templates added? I want to have Adsense on user's blogs... could I put different color for this adsense blocks?

Thanks

edenx 11-12-2007 12:21 AM

Would be nice if users could use an image for headers or backgrounds! :D

Kentaurus 11-12-2007 12:37 AM

Quote:

Originally Posted by edenx (Post 1380709)
Excellent mod !

Are new templates added? I want to have Adsense on user's blogs... could I put different color for this adsense blocks?

Thanks



Yes, all the templates that start with blog_customize_* are from this hack. Instead of the user_sidebar template, everything was split into different templates. If want to put an adsense, then the BLOG template should be the better place, since then the add would appear almost everywhere in the blog.

The color of your adsense is controlled by google, and would be the same no matter how the user changes the color of his blog.

PoetJA-1975 11-12-2007 02:26 AM

Looks really nice = Thanx for the sharing ;)

Jacquii.

PoetJA-1975 11-12-2007 08:13 AM

OK - testing..... Seems like the individual colour options are not per Personal Member blog ONLY but also show for all other blogs.... Any work around for that?

Again- Thanx for the share ;)

Jacquii.

Kentaurus 11-12-2007 11:38 AM

Quote:

Originally Posted by PoetJA-1975 (Post 1380870)
OK - testing..... Seems like the individual colour options are not per Personal Member blog ONLY but also show for all other blogs.... Any work around for that?

Again- Thanx for the share ;)

Jacquii.

fixed, thank you
reupload only "functions_blog_customize.php" of the includes directory. I have updated the zip file.

Even if it would be a nice feature: "View all blogs like my own", I don't think that's what most people expect

captainslater 11-12-2007 06:53 PM

Nice idea.

But everytime I choose a color I get the "This color isn't valid"-message after saving :/

Darmak 11-12-2007 08:01 PM

Great Hack !!! =D

Me ahorraste media vida Kentaurus =D, y eso se agradece muchísimo hombre...

TTG 11-12-2007 08:04 PM

Quote:

Originally Posted by captainslater (Post 1381220)
Nice idea.

But everytime I choose a color I get the "This color isn't valid"-message after saving :/

Same problem no matter what colour I select !?

edenx 11-12-2007 09:34 PM

Quote:

Originally Posted by edenx (Post 1380711)
Would be nice if users could use an image for headers or backgrounds! :D

Plis do this Kentaurus! :D

PoetJA-1975 11-12-2007 09:50 PM

Quote:

Originally Posted by Kentaurus (Post 1380935)
fixed, thank you
reupload only "functions_blog_customize.php" of the includes directory. I have updated the zip file.

Even if it would be a nice feature: "View all blogs like my own", I don't think that's what most people expect

No prob - seems like a good modification - I'll wait till it gets from beta stage to install though - Thanx for the sharing and yes - I agree about the "view all...." option ;)

Jacquii.

skariko 11-13-2007 08:05 PM

I've installed it.. i follow the instruction but i can't find on my template this part:

We need to modify some styles, for example we'll change instances of "class='tcat'" to "class='blogtcat'". To do this:

Edit the templates:
BLOG, blog_comment, blog_entry_without_userinfo, blog_show_entry, blog_sidebar_user
and replace them with the ones included with this hack, inside the "templates" directory

I try to go here:
http://www.mywebsite/forum/admincp/t....php?do=modify

And search in the templates.. but I have no the instances "CLASS='TCAT'"..

akvaryumforum 11-13-2007 09:05 PM

Super mod :)
Thanks Kentaurus

cheat-master30 11-13-2007 09:24 PM

I am so going to test this out. If I can somehow port some VS Interactive Profiles styles to the blogs, I can seriously help my members customise them. Thanks for sharing, and I'll install tomorrow.

ngocha85 11-14-2007 04:19 AM

<a href="https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=162470& type=1" target="_blank">Nominate for MOTM</a>!

Kentaurus 11-14-2007 12:21 PM

Quote:

Originally Posted by skariko (Post 1381987)
I've installed it.. i follow the instruction but i can't find on my template this part:

We need to modify some styles, for example we'll change instances of "class='tcat'" to "class='blogtcat'". To do this:

Edit the templates:
BLOG, blog_comment, blog_entry_without_userinfo, blog_show_entry, blog_sidebar_user
and replace them with the ones included with this hack, inside the "templates" directory

I try to go here:
http://www.mywebsite/forum/admincp/t....php?do=modify

And search in the templates.. but I have no the instances "CLASS='TCAT'"..


That was just an example to describe the type of changes that should be expected in the templates, I have included the actual new templates in the zip, as text files, you just need to open "BLOG.txt" of the zip, cut and paste all the contents on your "BLOG" template, then open "blog_comment.txt" of the zip, cut and paste all the contents on your "blog_comment" template of your forum.... and so on.

I include the templates instead of automatically replacing them, because some people, me included, like to know exactly what was changed, fast setup is just copy-paste the templates, but you could also compare side-to-side each one of the templates I mentioned and compare the changes.

Kentaurus 11-14-2007 12:23 PM

I'll test this. But I can't reproduce it on my board. I always test with firefox and a clean installation, tough, I'll try with more setups. You get that when any of the colors selected is not something that was expected.... um... could it be that the hack doesn't like a "transparent" color? I'll check and fix the bug.

cheat-master30 11-14-2007 01:02 PM

Keeps having the error of the colour not being valid, regardless of choice. Can't you just remove the validation thing for the colours altogether, seeing as it's their choice what things like contrast are?

cheat-master30 11-14-2007 01:17 PM

Uninstalled, files removed, link removed and two templates reverted until this is fixed.

P.S. Can you in future make sure your uninstall instructions are better and tell you how to revert the templates?

vien 11-14-2007 01:22 PM

Would be nice if users could use an image for headers or backgrounds!

Thanks.

hollosch 11-14-2007 02:36 PM

Nice hack,
but how can i realize that other users or guests have the pleasure to see the customized template??? only for the user himself its boring...

thx

skariko 11-15-2007 07:26 AM

Quote:

Originally Posted by Kentaurus (Post 1382332)
That was just an example to describe the type of changes that should be expected in the templates, I have included the actual new templates in the zip, as text files, you just need to open "BLOG.txt" of the zip, cut and paste all the contents on your "BLOG" template, then open "blog_comment.txt" of the zip, cut and paste all the contents on your "blog_comment" template of your forum.... and so on.

I include the templates instead of automatically replacing them, because some people, me included, like to know exactly what was changed, fast setup is just copy-paste the templates, but you could also compare side-to-side each one of the templates I mentioned and compare the changes.

Thank you :)
But I have another problem.. if I try to customize my blog it says:

"The selected color is not valid".

EDIT:
it says "the selected color is not valid" only if I set a transparent color.

Kentaurus 11-19-2007 12:10 AM

Quote:

Originally Posted by hollosch (Post 1382438)
Nice hack,
but how can i realize that other users or guests have the pleasure to see the customized template??? only for the user himself its boring...

thx

The behaviour has been changed to make more sense.
Everybody sees the blog like the user has customized it, including guests and other users. The .zip has been updated for this.

Kentaurus 11-19-2007 12:48 AM

Just fixed in 1.0.1. Thanks for your input.

hollosch 11-19-2007 10:56 AM

Quote:

Originally Posted by Kentaurus (Post 1385266)
Just fixed in 1.0.1. Thanks for your input.

Updated - but nothing happens. Other users see always the "Standard-Layout". Are there any parameters to change?

koxito 11-19-2007 03:03 PM

I have the same problem, i cutomized my own blog to try, but no one but me can see the custom settings. ? is there anything more to chance ?.

I've updated too, and nothing happend.

--------

Por cierto Kenta, felicidades por el mod es genial, tambien soy parte de CZ, fu? mi primer foro... :).

linhhon2003 11-19-2007 03:08 PM

hm i like users can edit their blog (thems , upload, like blog yahoo) someone can edit that?

Kentaurus 11-19-2007 04:55 PM

Quote:

Originally Posted by hollosch (Post 1385457)
Updated - but nothing happens. Other users see always the "Standard-Layout". Are there any parameters to change?



No, there aren't. Seems the bug wasn't gone :(

I hope the third try is the charm. I updated the package, you only need to reupload the includes/functions_blog_customize.php file

Kentaurus 11-19-2007 04:56 PM

Quote:

Originally Posted by koxito (Post 1385599)
I have the same problem, i cutomized my own blog to try, but no one but me can see the custom settings. ? is there anything more to chance ?.

I've updated too, and nothing happend.

--------

Por cierto Kenta, felicidades por el mod es genial, tambien soy parte de CZ, fu? mi primer foro... :).

Thanks a lot. Yes, there was a bug with the mod, I just updated it.
Since you run a spanish forum, I'm attaching the spanish translation too, here: https://vborg.vbsupport.ru/attachmen...2&d=1195498774

Kentaurus 11-19-2007 04:57 PM

Quote:

Originally Posted by linhhon2003 (Post 1385603)
hm i like users can edit their blog (thems , upload, like blog yahoo) someone can edit that?

I'm sorry, I didn't understand your post.
This mod brings limited customization to the blogs, style-based.

hollosch 11-19-2007 07:40 PM

Quote:

Originally Posted by Kentaurus (Post 1385682)
No, there aren't. Seems the bug wasn't gone :(

I hope the third try is the charm. I updated the package, you only need to reupload the includes/functions_blog_customize.php file

THX - Now it works - fine !!!

koxito 11-20-2007 04:06 AM

Yeah! it works!... i just updated, and its great!! ... i installed the spanish lenguage too! .. works great!! .. Thanks a lot... ill continue fallowing your mods!!! :)


Edit: One last thing before i just stop bugging you XD, ? do you know where i can find an spanish lagn pack for vbblog product ?

Saludos
Lumis!:)

Triky 11-21-2007 07:31 AM

I have not vBlog, but I have to say this is a really great idea! :)

hotwheels 11-21-2007 09:29 PM

quick question, i just installed your mod (which is kewl), but i noticed that the page doesn't exactly center itself. I think it has to do with the size of the centerbox alignment, but not sure.
I attached an image so if you have time, you can look at it and tell me what you think.

thanks, hotwheels


All times are GMT. The time now is 06:15 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01479 seconds
  • Memory Usage 1,829KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete