Loading ...

PHP Melody Functions List

Board index / PHP Melody - Video CMS / PHP Melody 1.6.x (old version)

Forums for the previous PHP Melody version (1.6.x)

Postby Bilderback on Jan 16, 2011 7 pm


I briefly went through the files seeking out functions and decided to post the listing
for developers tracking a function or trying to find some form of hook.
Maybe a developer documentation can be started like the Wordpress Codex.
PHP Melody Functions List v1.6.5
(Estimated 231 php functions)

install.php
get_percentage()

randomizer.php
get_random_video()

rate_functions.php
rating_bar()

rss.php
clean_feed()
generateFeed()

admin/ad_manager.php
manage_ad_form()

admin/add_video.php
add_video_form()

admin/functions.php
get_catnamefromid()
vnamefromvid()
a_list_videos()
a_list_temp()
a_list_comments()
a_list_cats()
a_list_users()
a_list_searches()
a_list_log()
a_list_vreports()
unhtmlspecialchars()
get_rss_news()
download_thumbs()
show_pm_notes()
read_version()
a_generate_smart_pagination()
a_get_video_tags()
insert_tags()
a_fetch_video_sources()
is_url()
fetch_languages()
a_list_cats_simple()
insert_new_video()
a_list_banned()
is_user_banned()
get_banlist()
!json_encode()
cache_this()
get_true_max_filesize()
mass_delete_videos()
add_config()
autosync()
restricted_access()

admin/img.resize.php
resize_img()
resize_image()
save_resizedimage()
output_resizedimage()
destroy_resizedimage()

admin/import.php
get_micro_time()
get_exec_time()
startElement()
endElement()
characterData()

admin/import_mtv.php
get_micro_time()
get_exec_time()
startElement()
endElement()
characterData()

admin/import_user.php
get_micro_time()
get_exec_time()
startElement()
endElement()
characterData()
grab_and_parse_xml()

admin/mysql_backup.php
Execute()
_Connect()
_Query()
_GetTables()
GetTables()
_DumpTable()
_GetInserts()
_Retrieve()
_SaveToFile()

admin/sitemap.php
clean_feed()
generateMap()

admin/statistics.php
count_avatars()
is_today()
is_yesterday()
is_thismonth()
top1_search()
top1_rated()
top1_commented()
top1_commentor()
member_searches()
recent_dates()

admin/syndicate_news.php
Get()
my_preg_match()
unhtmlentities()
get_rss_content()
Parse()

admin/videoads.php
manage_ad_form()

admin/vscheck.php
response()
get_video_details()
update_video()
vscheck_fetch_headers()

include/article_functions.php
get_article()
list_articles()
insert_new_article()
update_article()
delete_article()
mass_delete_articles()
get_article_tags()
art_insert_tags()
art_update_tags()
art_get_categories()
art_insert_category()
art_update_category()
art_delete_category()
pre_post_filter()
after_post_filter()
art_load_articles()
art_make_link()
art_html_list_categories()
art_pagination()
art_tag_cloud()
prep_title()
prep_content()
art_update_view_count()

PHP Mailer Fiels
include/class.php.mailer.php
include/class.pop3.php
include/class.smtp.php

include/functions.php
db_connect()
magicSlashes()
safename()
fewchars()
smarty_fewchars()
list_categories()
list_subcategories()
top_videos()
request_video()
update_view_count()
list_videos()
show_more()
get_catid()
get_catname()
getheaders()
make_youtube_player()
make_youtube_player2()
generate_embed_code()
make_voth()
show_more_featured()
show_voth_title()
return_bytes()
readable_filesize()
today()
ezDate()
time_since()
sec2min()
is_real_email_address()
count_entries()
send_a_mail()
prepare_for_mysql()
validate_email()
check_username()
word_wrap_pass()
addWrap()
search_bad_words()
RemoveCurseWords()
removeEvilAttributes()
removeEvilTags()
show_comments()
countryid2name()
make_cats()
show_thumb()
check_template()
dropdown_templates()
secure_sql()
specialchars()
makevideolink()
get_dn()
retrieve_vid()
islive()
videosplaying()
generate_smart_pagination()
sanitize_title()
remove_accents()
seems_utf8()
utf8_uri_encode()
get_video_tags()
safe2tag()
safe_tag()
tag_cloud()
log_error()
add_to_chart()
get_chart()
reset_chart()
count_days()
unspecialchars()
generate_activation_key()
fetch_video_sources()
stats()
!json_encode()
request_user_playlist()
report_video()
get_config()
update_config()
!mb_strlen()
!mb_substr()
!str_ireplace()
add_meta()
update_meta()
delete_meta()
get_meta()
resize_then_crop()

include/page_functions.php
get_page_by_name()
get_page()
insert_new_page()
update_page()
delete_page()
mass_delete_pages()
list_pages()
make_page_link()
filter_page_name()
generate_footer_page_links()
page_update_view_count()

include/secureimage.php
-Secureimage-

include/user_functions.php
lookup_cookies()
lookup_sessions()
is_user_logged_in()
check_user_login_info()
confirm_login()
is_user_account_active()
log_user_in()
logout()
get_last_referer()
reset_password()
fetch_user_info()
fetch_user_advanced()
generate_unique_id()
username_to_id()
banlist()
mod_can()
mod_cannot()
is_moderator()
is_editor()
is_admin()
is_regular_user()
is_registered_user()
User avatar
Bilderback
Verified Customer
Verified Customer
 
Posts: 133
Joined: Dec 03, 2010 12 am
Reputation points: 100

Postby Andrew on Jan 17, 2011 4 pm


Awesome :) Thanks for posting. Very neat!

Will get on with releasing PHP Melody 1.6.6 and then look into the Wiki situation.
PHP Melody v3.0
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
User avatar
Andrew
Founding Developer
 
Posts: 7504
Joined: Jul 07, 2007 1 pm
Reputation points: 428

Postby muzikia on Jan 17, 2011 4 pm


Andrew wrote:Awesome :)

Will get on with releasing PHP Melody 1.6.6 and then look for a good wiki option.


This is the best idea, Andrew.
To make a wiki with install tutorials, snippets repository, for each PHM version.
http://www.ModMyScript.com - PHPMelody plugins and mods since 2008
http://www.HostingWays.com - Shared or VPS Hosting
*** PHP Melody user and plugins maker for 9 years and counting.
User avatar
muzikia
Verified Customer
Verified Customer
 
Posts: 4120
Joined: Mar 24, 2008 6 am
Location: ModMyScript.com - PHPMELODY mods
Reputation points: 167

Postby Bilderback on Jan 18, 2011 1 am


Version 1.6.6 introduces 6 new functions and 16 functions which were changed either with code enhancement or bug fix.
New functions added in 1.6.6
include/article_functions.php
generate_excerpt()
lwmarkup_get_regex()
lwmarkup_parse()
lwmarkup_replace_video_tag()
lwmarkup_strip_all()

include/functions.php
pm_number_format()
User avatar
Bilderback
Verified Customer
Verified Customer
 
Posts: 133
Joined: Dec 03, 2010 12 am
Reputation points: 100

Postby Darshana on Jul 31, 2012 4 pm


Dear all

I need to get search latest videos results first instead of old videos first. Could you please help me under which function SQL quarry do I need to changed to get latest video result first.

Thanks for you in advance.

http://www.kandytube.net/search.php?keywords=gym&btn=Search
http://www.srisongs.com/search.php?keywords=sinhala+songs&btn
Darshana
Verified Customer
Verified Customer
 
Posts: 15
Joined: Jan 21, 2009 2 pm
Reputation points: 0

Postby mephisto on Jul 31, 2012 9 pm


ON TOPIC: assuming you got a decent text editor that allows you to search in files,
you can just do a search for something like
lwmarkup_strip_all(
or any other function, in the entire phpmelody directory (including subdirectories)
and it will tell you exactly where the function is being used or defined.
That's a lot faster than any list or even a wiki.

It's more about having the right tools than knowing where everything is;
Your tools will help you with that.


OFF TOPIC @ Darshana
you need to change the ORDER BY in the mysql query for the search
mephisto
Verified Customer
Verified Customer
 
Posts: 2888
Joined: Sep 30, 2008 8 am
Reputation points: -6

Postby Andrew on Aug 14, 2012 2 pm


ON TOPIC: assuming you got a decent text editor that allows you to search in files


I personally use Crimson Editor for this job (searching for a string in multiple files).
PHP Melody v3.0
New Series Module? Publish series and episodes right from PHP Melody's Dashboard -->
https://demo.phpmelody.com/admin/series.php
User avatar
Andrew
Founding Developer
 
Posts: 7504
Joined: Jul 07, 2007 1 pm
Reputation points: 428

Postby maojorge on Sep 10, 2013 9 pm


Ok

Please.

How do I enable MODERATORS have access to builder pages?
I do not want to allow the same functions as administrator.
Only allow access to the builder pages.
Which file I need to change?
This (include/user_functions.php) ?
maojorge
Non-verified
Non-verified
 
Posts: 3
Joined: Oct 30, 2009 9 am
Reputation points: 0

Postby sovanndy on Sep 20, 2013 4 pm


Hi Andrew,

Can I ask you something? where is the function or sql query that I can use to view next related video or previous related video? I mean that videos is series of related videos. I'm sorry for my poor english.

Thank in advance.
sovanndy
Verified Customer
Verified Customer
 
Posts: 28
Joined: Apr 10, 2013 2 am
Reputation points: 0


Who is online

Users browsing this forum: No registered users and 3 guests