View Single Post
  #133  
Old 02-16-2006, 06:07 PM
Crist's Avatar
Crist Crist is offline
 
Join Date: Sep 2005
Location: China
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Silvio
Hi Crist,
Excuse my bad english, I hope is understandable
Little problem,
I upgraded your hack from 1.1 perfectly working on VB3.5.3 to anymedia1.2

1) unload old product-anymedia.xml (1.1)
2) removed modifcations on includes/class_bbcode.php File
3) uploaded and overwritten old files on my site from your new 1.2 Upload directory
4) reloaded new product-anymedia.xml (1.2)
5) set up all permissions on usergroup.

The medias posted with 1.1 are all working and visible, as are the one posted with new 1.2; But if I try to preview a post with a new media, then an issue is there.
Don't worry.
You upgraded it perfectly,



Quote:
Originally Posted by Silvio
here what happen (example)

1) I create a post
2) I insert the url where my media is, and in this example I insert : http://www.myurl.xyz/mypath/forum/fl.../flashfile.swf
3) I highlight it and then press on M picture of allmedia hack and it correctly write on the writing pane [MEDIA]http://www.myurl.xyz/mypath/forum/flashpath/flashfile.swf[/MEDIA]
4) press preview

It will show up 2 errors --> Error: Non supported media type.

If I look what happend to the code on my editing pane after preview, I can see that it was translated in an unspected way, and in the specific case will be :

PHP Code:
 [media][url="http://www.myurl/mypath/forum/flashpath/flashfile.swf"]http://www.myurl/mypath/forum/flashpath/flashfile.swf[/url][url="http://www.myurl/mypath/forum/flashpath/flashfile.swf"][/url][/media][url="http://www.myurl/mypath/forum/flashpath/flashfile.swf"][/url] 
What I did wrong???
4B) If not preview is pressed but POST, then all seems to work great!
You added other bbcodes between the [Media] Code.
So it didn't work.

Don't insert other bbcodes (or html tags) to the [Media] code.
JUST THE URL.



Quote:
Originally Posted by Silvio
ciao and take care & ty for great hack!!
Ciao = Goodbye?
the only Italian word that I know.

:nervous:

Quote:
Originally Posted by Silvio
Edit : How is possible to :
Enable Users to see medias posted by authorized Users?
I do explain better: If I do not authorize a group, then that group wont see that media.
But if I want to let them see it and Just dont' post a media? how that could be possible?
again ciao & have fun
You could do this in this version,
Maybe I will add it into the new version.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01284 seconds
  • Memory Usage 1,782KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete